This commit is contained in:
René Mewißen
2025-04-26 18:39:47 +02:00
parent e534f0af53
commit 75f34a253d

View File

@@ -13,7 +13,7 @@
enabled: true
when: ansible_distribution == "Archlinux"
- name: "add cronjob for ansible"
- name: add cronjob for ansible
become: true
become_user: root
cron:
@@ -24,17 +24,19 @@
minute: 0
hour: 1
- name: "correct crontab for reboot | remove"
- name: correct crontab for reboot | remove
become: true
become_user: root
cron:
name: "generate SSH key on reboot, if missing"
job: '[[ -f /etc/ssh/ssh_host_* ]] | ssh-keygen -A'
state: absent
- name: "correct crontab for reboot | add"
- name: correct crontab for reboot | add
become: true
become_user: root
cron:
name: "generate SSH key on reboot, if missing"
job: '[[ -f /etc/ssh/ssh_host_* ]] || ssh-keygen -A'
state: present
reboot: true
@@ -74,4 +76,4 @@
hour: "0"
minute: "0"
job: "{{ root_home }} + '/bin/cron_pacman'"
when: ansible_distribution in ["Archlinux"]
when: ansible_distribution in ["Archlinux"]