ansible-pull(role): have failure notify deploy match other script deploy

Have the deployment of the ansible-pull-failure-notify script match the
deployment of the other helper scripts.
This commit is contained in:
June 2026-11-04 17:17:55 +01:00
commit a4a92448dc
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
2 changed files with 6 additions and 4 deletions

View file

@ -36,14 +36,16 @@
- ansible-pull-successful-run-timestamp-exporter
- ansible-pull-reboot
- name: ensure ansible-pull-failure-notify script installation exists
- name: ensure templated helper script installations exists
ansible.builtin.template:
src: ansible-pull-failure-notify.sh.j2
dest: /usr/local/sbin/ansible-pull-failure-notify.sh
src: "{{ item }}.sh.j2"
dest: "/usr/local/sbin/{{ item }}"
owner: root
group: root
mode: "0755"
become: true
loop:
- ansible-pull-failure-notify
- name: ensure secrets directory exists
ansible.builtin.file:

View file

@ -3,5 +3,5 @@ Description=ansible-pull failure notifier
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/ansible-pull-failure-notify.sh
ExecStart=ansible-pull-failure-notify
User=root