There is no need here to use `shell` instead of `command`
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
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
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
---
- 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