Skip to content

Commit 7d9c733

Browse files
committed
Ensure cron service is started for smartmon
1 parent cb1286c commit 7d9c733

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

etc/kayobe/ansible/smartmon-tools.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
state: present
1313
become: true
1414

15+
- name: Ensure the crond service is running
16+
service:
17+
name: "{{ 'cron' if ansible_facts['distribution'] == 'Ubuntu' else 'crond' }}"
18+
state: started
19+
enabled: true
20+
become: true
21+
1522
- name: Copy smartmon.sh and nvmemon.sh from scripts folder
1623
copy:
1724
src: "scripts/{{ item }}"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
features:
3+
- |
4+
The smartmon-tools playbook now ensures that the cron service is running as
5+
in some cases it may not be running by default.
6+

0 commit comments

Comments
 (0)