Skip to content

Instantly share code, notes, and snippets.

@amaurybsouza
Created February 13, 2022 14:07
Show Gist options
  • Save amaurybsouza/c382fe3a6ea7435159cc3246578eb5a1 to your computer and use it in GitHub Desktop.
Save amaurybsouza/c382fe3a6ea7435159cc3246578eb5a1 to your computer and use it in GitHub Desktop.
ansible-ad-hoc
$ ansible all -m ping -i inventory.yml
localhost | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python3"
},
"changed": false,
"ping": "pong"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment