From 66563d0bf3893f2207bb7bd83cf0dc42f91bb42a Mon Sep 17 00:00:00 2001 From: "William Hirigoyen (Evolix)" Date: Tue, 19 Jul 2022 17:19:58 +0200 Subject: [PATCH] =?UTF-8?q?[packweb-apache]=20#66841=20:=20ajout=20t=C3=A2?= =?UTF-8?q?che=20update=5Fuserlogrotate.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packweb-apache/tasks/update_userlogrotate.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packweb-apache/tasks/update_userlogrotate.yml diff --git a/packweb-apache/tasks/update_userlogrotate.yml b/packweb-apache/tasks/update_userlogrotate.yml new file mode 100644 index 00000000..a94080b0 --- /dev/null +++ b/packweb-apache/tasks/update_userlogrotate.yml @@ -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 +