Executing a command when there is an Ansible module is not recommended. Ansible has two generic ways of performing a task, using Ansible modules or using the command
/shell
module. Ansible modules are developed by the Ansible community and third party vendors like rpm
, docker
, kubernetes
, yum
, azure
etc.