add static checkout
This commit is contained in:
parent
9a21122da6
commit
adc69f07d5
@ -98,6 +98,18 @@
|
||||
group: root
|
||||
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
|
||||
command:
|
||||
cmd: nginx -t
|
||||
|
@ -10,7 +10,7 @@ proxy:
|
||||
- {domain: swagger.kmlabz.com, ip: swagger.stargate.internal}
|
||||
|
||||
static:
|
||||
- {domain: tormakristof.eu, directory: /var/www/tormakristof.eu}
|
||||
- {domain: tormakris.dev, directory: /var/www/tormakristof.eu}
|
||||
- {domain: torma.xyz, directory: /var/www/tormakristof.eu}
|
||||
- {domain: kmlabz.com, directory: /var/www/kmlabz.com}
|
||||
- {domain: tormakristof.eu, directory: /var/www/tormakristof.eu, repo: "https://git.kmlabz.com/kmlabz/homepage.git"}
|
||||
- {domain: tormakris.dev, directory: /var/www/tormakristof.eu, repo: "https://git.kmlabz.com/kmlabz/homepage.git"}
|
||||
- {domain: torma.xyz, directory: /var/www/tormakristof.eu, repo: "https://git.kmlabz.com/kmlabz/homepage.git"}
|
||||
- {domain: kmlabz.com, directory: /var/www/kmlabz.com, repo: "https://git.kmlabz.com/kmlabz/homepage.git"}
|
||||
|
Loading…
Reference in New Issue
Block a user