Use command instead of debug for handlers
Due to the debug message plugin the handler restart messages show at the end of the playbook execution which is a little confusing. Using debug also requires setting changed_when to true which is a little extra bit of code which we do not have to carry. Instead we use the command module which is simple, works and less wordy. Change-Id: I3562ef542ab4c87cd6bac82d916e5696149c8a6b
This commit is contained in:
parent
e7b6458d39
commit
32ec0260d2
|
@ -14,9 +14,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Restart cloudkitty services
|
- name: Restart cloudkitty services
|
||||||
debug:
|
command: "/bin/true"
|
||||||
msg: "Restarting services"
|
|
||||||
changed_when: true
|
|
||||||
notify:
|
notify:
|
||||||
- Stop services
|
- Stop services
|
||||||
- Copy new policy file into place
|
- Copy new policy file into place
|
||||||
|
|
Loading…
Reference in New Issue