Skip to content

Commit 1bf36fe

Browse files
committed
Add check to ensure cron is installed
Adds a check to ensure that cron is installed before attempting to configure the crontab.
1 parent a97a067 commit 1bf36fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

etc/kayobe/ansible/smartmon-tools.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
- nvmemon.sh
2424
become: yes
2525

26+
- name: Ensure cron is installed
27+
ansible.builtin.package:
28+
name: cron
29+
state: present
30+
become: yes
31+
2632
- name: Set PATH Variable for cron
2733
cron:
2834
name: PATH

0 commit comments

Comments
 (0)