mirror of https://github.com/ceph/ceph-ansible.git
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
parent
deaf273b25
commit
dd0c98c5a2
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue