From 2d1b0146d46dd82e3e167d77b05e7dc712710ac0 Mon Sep 17 00:00:00 2001 From: jyfou Date: Mon, 3 Oct 2022 15:55:10 +0200 Subject: [PATCH] chg : docker tasks - add vars for rsyslog or logrotate --- tasks/docker.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/docker.yml b/tasks/docker.yml index ac7a850..c50e9fb 100644 --- a/tasks/docker.yml +++ b/tasks/docker.yml @@ -48,6 +48,7 @@ dest: /etc/rsyslog.d/10-docker.conf mode: '0644' force: yes + when: rsyslog_docker is defined - name: copy logrotate config copy: @@ -55,3 +56,4 @@ dest: /etc/logrotate.d/docker mode: '0644' force: yes + when: logrotate_docker is defined \ No newline at end of file