diff --git a/defaults/main.yml b/defaults/main.yml index bfe0981..d70e096 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,2 +1,3 @@ logrotate_conf_dir: "/etc/logrotate.d/" +logrotate_install_package: true logrotate_scripts: [] diff --git a/tasks/main.yml b/tasks/main.yml index bc7c02c..7805ef6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -3,7 +3,7 @@ package: name: logrotate state: present - when: logrotate_scripts is defined and logrotate_scripts|length > 0 + when: logrotate_install_package - name: nickhammond.logrotate | Setup logrotate.d scripts template: