add static checkout

This commit is contained in:
Torma Kristóf 2022-04-14 23:09:44 +02:00
parent 9a21122da6
commit adc69f07d5
2 changed files with 16 additions and 4 deletions

View File

@ -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

View File

@ -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"}