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