corrected crontab
This commit is contained in:
@@ -24,6 +24,21 @@
|
|||||||
minute: 0
|
minute: 0
|
||||||
hour: 1
|
hour: 1
|
||||||
|
|
||||||
|
- name: "correct crontab for reboot | remove"
|
||||||
|
become: true
|
||||||
|
become_user: root
|
||||||
|
cron:
|
||||||
|
job: '[[ -f /etc/ssh/ssh_host_* ]] | ssh-keygen -A'
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: "correct crontab for reboot | add"
|
||||||
|
become: true
|
||||||
|
become_user: root
|
||||||
|
cron:
|
||||||
|
job: '[[ -f /etc/ssh/ssh_host_* ]] || ssh-keygen -A'
|
||||||
|
state: present
|
||||||
|
reboot: true
|
||||||
|
|
||||||
# - name: system setup | cron | schedule automatic ansible provisioning
|
# - name: system setup | cron | schedule automatic ansible provisioning
|
||||||
# tags: cron
|
# tags: cron
|
||||||
# cron:
|
# cron:
|
||||||
|
|||||||
Reference in New Issue
Block a user