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:
parent
96a7eabbac
commit
a4a92448dc
2 changed files with 6 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue