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-successful-run-timestamp-exporter
|
||||||
- ansible-pull-reboot
|
- ansible-pull-reboot
|
||||||
|
|
||||||
- name: ensure ansible-pull-failure-notify script installation exists
|
- name: ensure templated helper script installations exists
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: ansible-pull-failure-notify.sh.j2
|
src: "{{ item }}.sh.j2"
|
||||||
dest: /usr/local/sbin/ansible-pull-failure-notify.sh
|
dest: "/usr/local/sbin/{{ item }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
become: true
|
become: true
|
||||||
|
loop:
|
||||||
|
- ansible-pull-failure-notify
|
||||||
|
|
||||||
- name: ensure secrets directory exists
|
- name: ensure secrets directory exists
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,5 @@ Description=ansible-pull failure notifier
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/local/sbin/ansible-pull-failure-notify.sh
|
ExecStart=ansible-pull-failure-notify
|
||||||
User=root
|
User=root
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue