Digital Marketing

Ansible Ad-hoc command for localhost example

# ansible --connection=local   -m ping localhost
localhost | SUCCESS => {
    "changed": false,
    "ping": "pong"

ansible --connection=local   -m command -a "uname -r" localhost
localhost | CHANGED | rc=0 >>
4.14.181-142.260.amzn2.x86_64

Comments

Popular posts from this blog

Make online money from the Internet