idempotent checkout
This commit is contained in:
parent
5004338638
commit
ca48208928
@ -107,9 +107,14 @@
|
|||||||
name: nginx
|
name: nginx
|
||||||
state: reloaded
|
state: reloaded
|
||||||
|
|
||||||
|
- name: "Remove any existing static file directories"
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ item.directory }}"
|
||||||
|
state: absent
|
||||||
|
with_items: "{{ static }}"
|
||||||
|
|
||||||
- name: "Checkout static websites from git"
|
- name: "Checkout static websites from git"
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
force: true
|
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.directory }}"
|
dest: "{{ item.directory }}"
|
||||||
with_items: "{{ static }}"
|
with_items: "{{ static }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user