Switch to OnCalendar for ansible pull setups
This commit is contained in:
parent
33242616ca
commit
2ca99cac3f
@ -20,7 +20,7 @@ all:
|
||||
home:
|
||||
vars:
|
||||
ansible_user: ansible
|
||||
ansible_pull_frequency: 8h
|
||||
ansible_pull_time: "*-*-* 03:00:00"
|
||||
aws:
|
||||
backup_bucket: 9iron-backups-home
|
||||
backups_frequency: 1d
|
||||
|
@ -6,4 +6,4 @@
|
||||
- role: common
|
||||
tags: [ common ]
|
||||
- role: ansible-pull
|
||||
tags: [ common ]
|
||||
tags: [ ansible, common ]
|
||||
|
@ -1,4 +1,5 @@
|
||||
# vim:ft=ansible:
|
||||
ansible_pull_boot_delay: "15min"
|
||||
ansible_pull_frequency: "12h"
|
||||
# Use `systemd-analyze calendar` for testing
|
||||
ansible_pull_time: "*-*-* 01:00:00"
|
||||
ansible_pull_playbook: "site.yml"
|
||||
|
@ -5,7 +5,7 @@ Description=Ansible pull timer
|
||||
[Timer]
|
||||
Persistent=true
|
||||
OnBootSec={{ ansible_pull_boot_delay }}
|
||||
OnUnitActiveSec={{ ansible_pull_frequency }}
|
||||
OnCalendar={{ ansible_pull_time }}
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
|
Loading…
Reference in New Issue
Block a user