mirror of
https://github.com/DO1JLR/ansible_linux_desktop_setup.git
synced 2024-09-14 19:54:51 +02:00
make sure cron is running
This commit is contained in:
parent
11f1789c88
commit
280349cb47
3 changed files with 23 additions and 1 deletions
5
roles/akku-warning/defaults/main.yml
Normal file
5
roles/akku-warning/defaults/main.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
|
||||
# should we install cronie?
|
||||
install_and_enable_cronie: false
|
||||
|
|
@ -24,3 +24,20 @@
|
|||
user: '{{ user }}'
|
||||
cron_file: /etc/crontab
|
||||
|
||||
- name: Make sure cron is installed
|
||||
become: true
|
||||
when: install_and_enable_cronie
|
||||
packages:
|
||||
names:
|
||||
- cronie
|
||||
state: latest
|
||||
|
||||
- name: Make sure cron is running
|
||||
become: true
|
||||
when: install_and_enable_cronie
|
||||
systemd:
|
||||
name: cronie.service
|
||||
state: started
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 919ece6d95faf02007259471b5747af1d08e6f80
|
||||
Subproject commit 2fbb751274de7142bfd900acb85c9176e2635505
|
Loading…
Reference in a new issue