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
|
||||
loop:
|
||||
- ansible-pull.service
|
||||
- ansible-pull-failure-notify.service
|
||||
notify:
|
||||
- systemd daemon reload
|
||||
|
||||
|
|
@ -88,6 +87,7 @@
|
|||
mode: "0644"
|
||||
become: true
|
||||
loop:
|
||||
- ansible-pull-failure-notify.service
|
||||
- ansible-pull-reboot.service
|
||||
- ansible-pull-successful-run-timestamp-exporter.service
|
||||
notify:
|
||||
|
|
|
|||
Loading…
Reference in a new issue