[packweb-apache] #66841 : ajout tâche update_userlogrotate.yml
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8cdaee9658
commit
66563d0bf3
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: "Cherche l'emplacement de userlogrotate"
|
||||||
|
ansible.builtin.find:
|
||||||
|
path: /etc
|
||||||
|
patterns: userlogrotate
|
||||||
|
register: find_logrotate
|
||||||
|
|
||||||
|
- name: "Met-à-jour userlogrotate"
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: userlogrotate
|
||||||
|
dest: "{{ item }}"
|
||||||
|
mode: "0755"
|
||||||
|
loop: "{{ find_logrotate.files }}"
|
||||||
|
when: find_logrotate.files | length>0
|
||||||
|
|
Loading…
Reference in New Issue