ansible-playbook — Ansible Documentation
docs.ansible.com › cli › ansible-playbookDec 21, 2021 · Common Options . privilege escalation method to use (default=sudo), use ansible-doc -t become -l to list valid choices. clear the fact cache for every host in inventory. outputs a list of matching hosts; does not execute anything else. specify extra arguments to pass to scp only (e.g. -l) specify extra arguments to pass to sftp only (e.g. -f, -l)
Run Your First Command and Playbook - Ansible
docs.ansible.com › first_playbookDec 21, 2021 · The playbook sets three of the seven values from the command line above: the group (hosts: all), the connection method (connection: ansible.netcommon.network_cli) and the module (in each task). With those values set in the playbook, you can omit them on the command line. The playbook also adds a second task to show the config output.