ansible-roles/packweb-apache/tasks/update_userlogrotate.yml
William Hirigoyen (Evolix) 66563d0bf3
All checks were successful
continuous-integration/drone/push Build is passing
[packweb-apache] #66841 : ajout tâche update_userlogrotate.yml
2022-07-19 17:19:58 +02:00

17 lines
351 B
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- 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