corrected crontab
This commit is contained in:
1 parent
c9d6916aa8
commit
84eb2769f4
1 file changed
+15
@@ -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