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 pingAll lessons in this course
- Anatomy of the ansible Command
- Patterns: Targeting all, web & host1
- Run Shell Commands with command & shell
- Privilege Escalation with become