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: I7096ca81dd6e1126926c95f3c2b7437d0c9d452f
This commit is contained in:
parent
fc3c42c928
commit
aa4910a1cc
@ -14,9 +14,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
- name: Restart glance services
|
||||
debug:
|
||||
msg: "Restarting services"
|
||||
changed_when: true
|
||||
command: "/bin/true"
|
||||
notify:
|
||||
- Stop services
|
||||
- Copy new policy file into place
|
||||
|
Loading…
x
Reference in New Issue
Block a user