Release of EvoBSD 6.8.0 #37
|
@ -7,8 +7,18 @@
|
||||||
group: wheel
|
group: wheel
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
|
- name: Fetch root crontab content
|
||||||
|
command: 'grep "/bin/sh /usr/share/scripts/motd-carp-state.sh" /var/cron/tabs/root'
|
||||||
|
check_mode: false
|
||||||
|
register: root_crontab_content
|
||||||
|
failed_when: false
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- name: Cron job for dynamic motd script is installed
|
- name: Cron job for dynamic motd script is installed
|
||||||
cron:
|
cron:
|
||||||
name: dynamic motd for CARP
|
name: dynamic motd for CARP
|
||||||
job: "/bin/sh /usr/share/scripts/motd-carp-state.sh"
|
job: "/bin/sh /usr/share/scripts/motd-carp-state.sh"
|
||||||
disabled: true
|
disabled: true
|
||||||
|
when:
|
||||||
|
- not (root_crontab_content.stdout | regex_search('/bin/sh /usr/share/scripts/motd-carp-state.sh'))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue