file stuff can be done when the server is ready

This commit is contained in:
Torma Kristóf 2022-04-14 23:16:14 +02:00
parent adadd086b6
commit e425c703eb

View File

@ -98,6 +98,15 @@
group: root group: root
mode: '0644' mode: '0644'
- name: Validate nginx configuration
command:
cmd: nginx -t
- name: Reload nginx after configuration change
service:
name: nginx
state: reloaded
- name: "Checkout static websites from git" - name: "Checkout static websites from git"
ansible.builtin.git: ansible.builtin.git:
repo: "{{ item.repo }}" repo: "{{ item.repo }}"
@ -109,12 +118,3 @@
path: "{{ item.directory}}/.git" path: "{{ item.directory}}/.git"
state: absent state: absent
with_items: "{{ static }}" with_items: "{{ static }}"
- name: Validate nginx configuration
command:
cmd: nginx -t
- name: Reload nginx after configuration change
service:
name: nginx
state: reloaded