[packweb-apache] #66841 : ajout tâche update_userlogrotate.yml
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8cdaee9658
commit
66563d0bf3
16
packweb-apache/tasks/update_userlogrotate.yml
Normal file
16
packweb-apache/tasks/update_userlogrotate.yml
Normal file
|
@ -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 a new issue