[packweb-apache] #66841 : ajout tâche update_userlogrotate.yml
continuous-integration/drone/push Build is passing Details

This commit is contained in:
William Hirigoyen (Evolix) 2022-07-19 17:19:58 +02:00
parent 8cdaee9658
commit 66563d0bf3
1 changed files with 16 additions and 0 deletions

View 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