ansible-infra/roles/ansible_pull
Repository files (latest commit first)
Filename Latest commit message Latest commit date
June 1157c98ff5
ansible-pull(role): make successful run timestamp exporter work
The successful run timestamp exporter didn't work, because the
ansible-pull user wouldn't necessarily have the necessary permissions
and because the command wouldn't properly work.
Move the timestamp export as well as the reboot to separate services,
which always run as root, to ensure these operations work and to have a
clean setup using systemd services.
Also move the successful run timestamp exporter to a custom script to
have it work properly.
2026-11-04 17:28:03 +01:00
..
defaults ansible_pull(role): introduce ansible_pull role 2025-10-13 16:56:18 +02:00
files ansible-pull(role): make successful run timestamp exporter work 2026-11-04 17:28:03 +01:00
handlers ansible_pull(role): introduce ansible_pull role 2025-10-13 16:56:18 +02:00
meta ansible_pull(role): add failure notifications 2025-10-14 22:20:27 +02:00
tasks ansible-pull(role): make successful run timestamp exporter work 2026-11-04 17:28:03 +01:00
templates ansible-pull(role): make successful run timestamp exporter work 2026-11-04 17:28:03 +01:00
README.md ansible_pull(role): add failure notifications 2025-10-14 22:20:27 +02:00

ansible_pull role

A role for setting up automatic ansible_pull runs.

Supported Distributions

Should work on Debian-based distributions.

Required Arguments

  • ansible_pull__age_private_key: The age private key to use to decrypt SOPS secrets with.
  • ansible_pull__repo_url: The URL of the repo to run the playbook from.
  • ansible_pull__inventory: The inventory to use.
  • ansible_pull__playbook: The playbook to run.
  • ansible_pull__timer_on_calendar: When to run the playbook. This is the argument to a systemd timers OnCalendar. See the systemd.time man page for reference.
  • ansible_pull__failure_notification_address: The address to send the failure notification to.

Optional Arguments

  • ansible_pull__user: The user to run ansible_pull as. Defaults to ansible_user.
  • ansible_pull__checkout: The branch/tag/commit to check out to run the playbook from. Defaults to main.
  • ansible_pull__timer_randomized_delay_sec: The timer will be randomly delayed by a value between 0 and this. Useful to not have all timers fire at the same time, even if ansible_pull__timer_on_calendar is the same. Time value in seconds. Defaults to 0.