table of contents
- stretch 2.2.1.0-2+deb9u1
- testing 2.7.7+dfsg-1
- stretch-backports 2.7.5+dfsg-1~bpo9+1
- unstable 2.7.8+dfsg-1
ANSIBLE-PLAYBOOK(1) | System administration commands | ANSIBLE-PLAYBOOK(1) |
NAME¶
ansible-playbook - run an ansible playbookSYNOPSIS¶
ansible-playbook <filename.yml> ... [options]DESCRIPTION¶
Ansible playbooks are a configuration and multinode deployment system. Ansible-playbook is the tool used to run them. See the project home page (link below) for more information.ARGUMENTS¶
filename.ymlOPTIONS¶
-b, --become-K, --ask-become-pass
-k, --ask-pass
--ask-su-pass
--ask-sudo-pass
--ask-vault-pass
-C, --check
-c CONNECTION, --connection=CONNECTION
-D, --diff
-e EXTRA_VARS, --extra-vars=EXTRA_VARS
--flush-cache
--force-handlers
-f NUM, --forks=NUM
-h, --help
-i PATH, --inventory=PATH
-l SUBSET, --limit=SUBSET
--list-hosts
--list-tags
--list-tasks
-M DIRECTORY, --module-path=DIRECTORY
--private-key=PRIVATE_KEY_FILE
--start-at-task=START_AT
--step
-S, --su*
-R SU-USER, --su-user=SU_USER
-s, --sudo
--ssh-common-args='-o ProxyCommand="ssh -W %h:%p ..." ...'
--sftp-extra-args='-f ...'
--scp-extra-args='-l ...'
--ssh-extra-args='-R ...'
-U SUDO_USERNAME, --sudo-user=SUDO_USERNAME
--skip-tags=SKIP_TAGS
--syntax-check
-t, TAGS, --tags=TAGS
-T SECONDS, --timeout=SECONDS
-u USERNAME, --user=USERNAME
--vault-password-file=VAULT_PASSWORD_FILE
-v, --verbose
--version
EXIT STATUS¶
0 — OK or no hosts matched1 — Error
2 — One or more hosts failed
3 — One or more hosts were unreachable
4 — Parser error
5 — Bad or incomplete options
99 — User interrupted execution
250 — Unexpected error
ENVIRONMENT¶
The following environment variables may be specified:ANSIBLE_INVENTORY — Override the default ansible inventory file
ANSIBLE_LIBRARY — Override the default ansible module library path
ANSIBLE_CONFIG — Override the default ansible config file
Many more are available for most options in ansible.cfg
FILES¶
/etc/ansible/hosts — Default inventory file/usr/share/ansible/ — Default module library
/etc/ansible/ansible.cfg — Config file, used if present
~/.ansible.cfg — User config file, overrides the default config if present
AUTHOR¶
Ansible was originally written by Michael DeHaan. See the AUTHORS file for a complete list of contributors.COPYRIGHT¶
Copyright © 2012, Michael DeHaanAnsible is released under the terms of the GPLv3 License.
SEE ALSO¶
ansible(1), ansible-pull(1), ansible-doc(1), ansible-vault(1), ansible-galaxy(1)Extensive documentation is available in the documentation site: http://docs.ansible.com. IRC and mailing list info can be found in file CONTRIBUTING.md, available in: https://github.com/ansible/ansible
01/16/2017 | Ansible 2.2.1.0 |