Fix tags usage for included tasks
With usage of include_tasks tags must be applied accordingly, which was missing. That prevented running service load whenever systemd-service tag was used. Change-Id: Id48457c43e38e19f781bfe11d1fb6eaeb9fdde6f
This commit is contained in:
parent
59736cb4af
commit
f3396119a4
@ -21,6 +21,10 @@
|
||||
loop: "{{ systemd_socket.results }}"
|
||||
loop_control:
|
||||
loop_var: socket_results
|
||||
args:
|
||||
apply:
|
||||
tags:
|
||||
- systemd-service
|
||||
tags:
|
||||
- systemd-service
|
||||
|
||||
@ -28,6 +32,10 @@
|
||||
- name: Restart changed services
|
||||
include_tasks: handlers/systemd_restart.yml
|
||||
listen: systemd service changed
|
||||
args:
|
||||
apply:
|
||||
tags:
|
||||
- systemd-service
|
||||
when:
|
||||
- 'services_results.item.restart_changed | default(systemd_service_restart_changed) | bool'
|
||||
- 'services_results.item.state is not defined'
|
||||
|
@ -147,6 +147,10 @@
|
||||
loop: "{{ systemd_services }}"
|
||||
loop_control:
|
||||
loop_var: service
|
||||
args:
|
||||
apply:
|
||||
tags:
|
||||
- systemd-service
|
||||
tags:
|
||||
- systemd-service
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user