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