0Pricing
Ansible Academy · Lesson

Anatomy of the ansible Command

Read the -m, -a and pattern arguments.

One Command, Many Servers

An ad-hoc command runs a single task across your servers right now, with no playbook file to write first. 🚀

Meet the ansible Command

You start every ad-hoc run with the ansible binary, followed by a host pattern and the options that say what to do.

ansible all -m ping

All lessons in this course

  1. Anatomy of the ansible Command
  2. Patterns: Targeting all, web & host1
  3. Run Shell Commands with command & shell
  4. Privilege Escalation with become
← Back to Ansible Academy