corrected crontab

This commit is contained in:
René Mewißen
2025-04-26 11:07:39 +02:00
parent c9d6916aa8
commit 84eb2769f4

View File

@@ -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: