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

Fixed WSL sshd: no hostkeys available -- exiting

PowerMTA pmta command

How to fix: mv: failed to preserve ownership