This is growing into a minimal Ansible reference of sorts, since Ansible’s own docs have nothing like a reference.

Misc. stuff I need to file somewhere:

Ad-hoc command

ansible Host pattern -m <module> [options]


$ ansible all -m ping –ask-pass

Shortcut to run a command:

$ ansible all -a “/bin/echo hello”

options: see output of “ansible –help” for now

See doc for ad-hoc commands.

Host pattern

See doc for host patterns.


“all” = all hosts in inventory file