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: Ic80a23df0d86258ae7931ebb0dea2bcea97187a2
This commit is contained in:
parent
4964e2cb97
commit
9315d428c3
|
@ -15,9 +15,7 @@
|
|||
# limitations under the License.
|
||||
|
||||
- name: Restart designate services
|
||||
debug:
|
||||
msg: "Restarting services"
|
||||
changed_when: true
|
||||
command: "/bin/true"
|
||||
notify:
|
||||
- Stop services
|
||||
- Copy new policy file into place
|
||||
|
|
Loading…
Reference in New Issue