idempotent checkout

This commit is contained in:
Torma Kristóf 2022-04-14 23:43:03 +02:00
parent 5004338638
commit ca48208928

View File

@ -107,9 +107,14 @@
name: nginx
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"
ansible.builtin.git:
force: true
repo: "{{ item.repo }}"
dest: "{{ item.directory }}"
with_items: "{{ static }}"