Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 1000 Bytes

index.rst

File metadata and controls

60 lines (39 loc) · 1000 Bytes

Ansible Cheatsheet

Things I'm always wanting to look up about Ansible.

.. toctree::

  configuration
  inventory
  conditionals
  playbook
  role
  task
  variables
  conditionals
  loops
  invoking
  organizing
  sharing


Misc. stuff I need to file somewhere:

Ad-hoc command

ansible :ref:`host-pattern` -m <module> [options]

e.g.

$ 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 ad-hoc commands.

Host pattern

See patterns for now

<hosts>:

"all" = all hosts in inventory file