Switch to OnCalendar for ansible pull setups

This commit is contained in:
Salt 2020-08-11 03:51:15 -05:00
parent 33242616ca
commit 2ca99cac3f
4 changed files with 5 additions and 4 deletions

View File

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

View File

@ -6,4 +6,4 @@
- role: common
tags: [ common ]
- role: ansible-pull
tags: [ common ]
tags: [ ansible, common ]

View File

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

View File

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