forked from evolix/ansible-roles
5cf81335e6
Mostly whitespace and comparison with empty strings
16 lines
378 B
YAML
16 lines
378 B
YAML
---
|
|
- name: Check if cron is installed
|
|
shell: "dpkg -l cron 2> /dev/null | grep -q -E '^(i|h)i'"
|
|
failed_when: False
|
|
changed_when: False
|
|
register: is_cron_installed
|
|
|
|
- name: "log rotation script"
|
|
template:
|
|
src: rotate_logstash_logs.j2
|
|
dest: /etc/cron.daily/rotate_logstash_logs
|
|
owner: root
|
|
group: root
|
|
mode: "0750"
|
|
when: is_cron_installed.rc == 0
|