Introduction to Ansible ad hoc commands

Ansible provides modules that give us the power to manage our list of hosts. These modules can be referenced from within our playbooks or by using ad hoc commands. Ad hoc commands are one-liners that we can run to quickly execute a particular task. The basic syntax of an ad hoc command is shown below:

Get hands-on with 1200+ tech skills courses.