common: do not use `shell` module when it is not needed

There is no need here to use `shell` instead of `command`

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/2372/head
Guillaume Abrioux 2018-01-31 09:31:11 +01:00 committed by Sébastien Han
parent deaf273b25
commit dd0c98c5a2
2 changed files with 9 additions and 3 deletions

View File

@ -294,7 +294,9 @@
ignore_errors: true
- name: is reboot needed
local_action: shell echo requesting reboot
local_action:
module: command
echo requesting reboot
become: false
notify:
- restart machine
@ -569,7 +571,9 @@
state: absent
- name: request data removal
local_action: shell echo requesting data removal
local_action:
module: command
echo requesting data removal
become: false
notify:
- remove data

View File

@ -1,6 +1,8 @@
---
- name: check if nmap is installed
local_action: shell command -v nmap
local_action:
module: command
command -v nmap
changed_when: false
failed_when: false
register: nmapexist