[EVO] Vérifier la présence du fichier avant de le copier #2
@ -43,7 +43,9 @@
|
|||||||
mode: u=rw,g=,o=
|
mode: u=rw,g=,o=
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
when: fail2ban_templates | length > 0
|
when:
|
||||||
|
- fail2ban_templates | length > 0
|
||||||
|
- item.src is exists
|
||||||
loop: "{{ fail2ban_templates }}"
|
loop: "{{ fail2ban_templates }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.dest }}"
|
label: "{{ item.dest }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user