Ansible local command example

$ ansible --connection=local -m command -a "/bin/echo hello world" localhost
localhost | CHANGED | rc=0 >>
hello world

Comments