Fast version of role logcheck to be used in dependencies.
-dependencies: ['init-system', 'firewall', 'logcheck']
+dependencies: ['init-system', 'firewall', 'init-logcheck']
--- /dev/null
+Fast version of role logcheck - it just checks if logcheck is installed.
--- /dev/null
+- name: Check logcheck
+ stat:
+ path: /etc/logcheck/logcheck.conf
+ register: logcheck_exists
+ changed_when: not logcheck_exists.stat.exists
+
+- name: Install logcheck if not installed
+ import_role:
+ name: logcheck
+ when: not logcheck_exists.stat.exists
-dependencies: ['init-system', 'firewall', 'logcheck']
+dependencies: ['init-system', 'firewall', 'init-logcheck']