ansible-pull(role): deploy failure notify service using the copy loop
Deploy the ansible-pull-failure-notify.service using the loop using ansible.builtin.copy as it doesn't have any template logic.
This commit is contained in:
parent
a4a92448dc
commit
947d8fd0a0
2 changed files with 1 additions and 1 deletions
|
|
@ -0,0 +1,7 @@
|
||||||
|
[Unit]
|
||||||
|
Description=ansible-pull failure notifier
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=ansible-pull-failure-notify
|
||||||
|
User=root
|
||||||
|
|
@ -75,7 +75,6 @@
|
||||||
become: true
|
become: true
|
||||||
loop:
|
loop:
|
||||||
- ansible-pull.service
|
- ansible-pull.service
|
||||||
- ansible-pull-failure-notify.service
|
|
||||||
notify:
|
notify:
|
||||||
- systemd daemon reload
|
- systemd daemon reload
|
||||||
|
|
||||||
|
|
@ -88,6 +87,7 @@
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
become: true
|
become: true
|
||||||
loop:
|
loop:
|
||||||
|
- ansible-pull-failure-notify.service
|
||||||
- ansible-pull-reboot.service
|
- ansible-pull-reboot.service
|
||||||
- ansible-pull-successful-run-timestamp-exporter.service
|
- ansible-pull-successful-run-timestamp-exporter.service
|
||||||
notify:
|
notify:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue