add static checkout
This commit is contained in:
parent
9a21122da6
commit
adc69f07d5
@ -98,6 +98,18 @@
|
|||||||
group: root
|
group: root
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|
||||||
|
- name: "Checkout static websites from git"
|
||||||
|
ansible.builtin.git:
|
||||||
|
repo: "{{ item.repo }}"
|
||||||
|
dest: "{{ item.directory }}"
|
||||||
|
with_items: "{{ static }}"
|
||||||
|
|
||||||
|
- name: "Remove .git directory from static websites"
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ item.directory}}/.git"
|
||||||
|
state: absent
|
||||||
|
with_items: "{{ static }}"
|
||||||
|
|
||||||
- name: Validate nginx configuration
|
- name: Validate nginx configuration
|
||||||
command:
|
command:
|
||||||
cmd: nginx -t
|
cmd: nginx -t
|
||||||
|
@ -10,7 +10,7 @@ proxy:
|
|||||||
- {domain: swagger.kmlabz.com, ip: swagger.stargate.internal}
|
- {domain: swagger.kmlabz.com, ip: swagger.stargate.internal}
|
||||||
|
|
||||||
static:
|
static:
|
||||||
- {domain: tormakristof.eu, directory: /var/www/tormakristof.eu}
|
- {domain: tormakristof.eu, directory: /var/www/tormakristof.eu, repo: "https://git.kmlabz.com/kmlabz/homepage.git"}
|
||||||
- {domain: tormakris.dev, directory: /var/www/tormakristof.eu}
|
- {domain: tormakris.dev, directory: /var/www/tormakristof.eu, repo: "https://git.kmlabz.com/kmlabz/homepage.git"}
|
||||||
- {domain: torma.xyz, directory: /var/www/tormakristof.eu}
|
- {domain: torma.xyz, directory: /var/www/tormakristof.eu, repo: "https://git.kmlabz.com/kmlabz/homepage.git"}
|
||||||
- {domain: kmlabz.com, directory: /var/www/kmlabz.com}
|
- {domain: kmlabz.com, directory: /var/www/kmlabz.com, repo: "https://git.kmlabz.com/kmlabz/homepage.git"}
|
||||||
|
Loading…
Reference in New Issue
Block a user