Skip to content

Commit 0be5831

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 0be5831

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

etc/kayobe/ansible/smartmon-tools.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
- hosts: overcloud
33

44
tasks:
5-
- name: Ensure smartmon-tools and nvme-cli is installed
5+
- name: Ensure smartmon-tools, jq, nvme-cli and cron/cronie is installed
66
package:
77
name:
88
- smartmontools
99
- nvme-cli
1010
- jq
11+
- "{{ 'cron' if ansible_facts['distribution'] == 'Ubuntu' else 'cronie' }}"
1112
state: present
1213
become: true
1314

0 commit comments

Comments
 (0)