ansible-playbook <command...>

Runs Ansible playbooks, executing the defined tasks on the targeted hosts

Arguments

NameDescription
commandPlaybook(s)

Options

NameDescription
--ask-vault-passAsk for vault password
--flush-cacheClears the fact cache for every host in inventory
--force-handlersRun handlers even if a task fails
--list-hostsOutputs a list of matching hosts; does not execute
--list-tagsList all available tags
--list-tasksList all tasks that would be executed
--skip-tags <command>Only run plays and tasks whose tags do not match these values
--start-at-task <command>Start the playbook at the task matching this name one-step-at-a-time
--stepExecute one-step-at-a-time
--syntax-checkPerform a syntax check on the playbook, but do not execute it
--vault-id <command>Specify the vault identity to use
--vault-password-file <command>Specify a vault password file
--versionShow program's version number, config file location, configured module search path, module location and executable location
--check,-CDon't make any changes; instead, try to predict some of the changes that may occur
--diff,-DWhen changing (small) files and templates, show the differences in those files
--module-path,-M <command>Prepend colon-separated path(s) to module library
--extra-vars,-e <command>Set additional variables as key=value or YAML/JSON, if filename prepend with @
--forks,-f <command>Specify number of parallel processes to use
--help,-hShow help for ansible
--inventory,-i <command>Specify inventory host path or comma separated host list
--limit,-l <command>Limit selected hosts to an additional pattern
--tags,-t <command>Only run plays and tasks tagged with these values
--verbose,-vEnable verbose mode
-vvvEnable very verbose mode
-vvvvEnable connection debug mode
--become-method <command>Privilege escalation method to use
--become-user <command>Privilege escalation user to use
--ask-become-pass,-KPrompt for privilege escalation password
--become,-bRun operations with become
--private-key,--key-file <command>Use this fole to authenticate the connection
--scp-extra-args <command>Extra arguments to pass to (only) scp
--sftp-extra-args <command>Extra arguments to pass to (only) sftp
-ssh-extra-args <command>Extra arguments to pass to (only) ssh
--ssh-common-args <command>Extra arguments to pass to sftp/scp/ssh
--timeout,-T <command>Override the connection timeout in seconds
--connection,-c <command>Connection type to use
--ask-pass,-kAsk for connection password
--user,-u <command>Connect as this user