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: I3861447fe685b38ecb9dfad8f3dff666b160af36
This commit is contained in:
Jesse Pretorius 2017-05-24 11:30:43 +01:00
parent e5de292d06
commit 8b09798733
1 changed files with 1 additions and 3 deletions

View File

@ -14,9 +14,7 @@
# limitations under the License.
- name: Restart neutron services
debug:
msg: "Restarting services"
changed_when: true
command: "/bin/true"
notify:
- Stop services
- Copy new policy file into place