'\" t
. \" Title: ansible-playbook
. \" Author: :doctype:manpage
. \" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
. \" Date: 12/09/2014
. \" Manual: System administration commands
. \" Source: Ansible 1.9
. \" Language: English
. \"
.TH "ANSIBLE\-PLAYBOOK" "1" "12/09/2014" "Ansible 1\&.9" "System administration commands"
. \" -----------------------------------------------------------------
. \" * Define some portability stuff
. \" -----------------------------------------------------------------
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. \" http://bugs.debian.org/507673
. \" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n (.g .ds Aq \(aq
.el .ds Aq '
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
.SH "NAME"
ansible-playbook \- run an ansible playbook
.SH "SYNOPSIS"
.sp
ansible\- playbook <filename\& .yml> \& ... [options]
.SH "DESCRIPTION"
.sp
\fB Ansible playbooks\fR 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\& .
.SH "ARGUMENTS"
.PP
\fB filename\& .yml\fR
.RS 4
The names of one or more YAML format files to run as ansible playbooks\& .
.RE
.SH "OPTIONS"
.PP
\fB \- v\fR , \fB \- \- verbose\fR
.RS 4
Verbose mode, more output from successful actions will be shown\& . Give up to three times for more output\& .
.RE
.PP
\fB \- i\fR \fI PATH\fR , \fB \- \- inventory=\fR \fI PATH\fR
.RS 4
The
\fI PATH\fR
to the inventory hosts file, which defaults to
\fI /etc/ansible/hosts\fR \& .
.RE
.PP
\fB \- M\fR \fI DIRECTORY\fR , \fB \- \- module\- path=\fR \fI DIRECTORY\fR
.RS 4
The
\fI DIRECTORY\fR
search path to load modules from\& . The default is
\fI /usr/share/ansible\fR \& . This can also be set with the ANSIBLE_LIBRARY environment variable\& .
.RE
.PP
\fB \- e\fR \fI VARS\fR , \fB \- \- extra\- vars=\fR \fI VARS\fR
.RS 4
Extra variables to inject into a playbook, in key=value key=value format or as quoted JSON (hashes and arrays)\& .
.RE
.PP
\fB \- f\fR \fI NUM\fR , \fB \- \- forks=\fR \fI NUM\fR
.RS 4
Level of parallelism\& .
\fI NUM\fR
is specified as an integer, the default is 5\& .
.RE
.PP
\fB \- k\fR , \fB \- \- ask\- pass\fR
.RS 4
Prompt for the SSH password instead of assuming key\- based authentication with ssh\- agent\& .
.RE
.PP
\fB \- K\fR , \fB \- \- ask\- sudo\- pass\fR
.RS 4
Prompt for the password to use for playbook plays that request sudo access, if any\& .
.RE
.PP
\fB \- U\fR , \fI SUDO_USER\fR , \fB \- \- sudo\- user=\fR \fI SUDO_USER\fR
.RS 4
Desired sudo user (default=root)\& .
.RE
.PP
\fB \- t\fR , \fI TAGS\fR , \fB \- \- tags=\fR \fI TAGS\fR
.RS 4
Only run plays and tasks tagged with these values\& .
.RE
.PP
\fB \- \- skip\- tags=\fR \fI SKIP_TAGS\fR
.RS 4
Only run plays and tasks whose tags do not match these values\& .
.RE
.PP
\fB \- \- syntax\- check\fR
.RS 4
Look for syntax errors in the playbook, but don\(cq t run anything
.RE
.PP
\fB \- \- check\fR
.RS 4
Do not make any changes on the remote system, but test resources to see what might have changed\& . Note this can not scan all possible resource types and is only a simulation\& .
.RE
.PP
\fB \- \- diff\fR
.RS 4
When changing any templated files, show the unified diffs of how they changed\& . When used with \- \- check, shows how the files would have changed if \- \- check were not used\& .
.RE
.PP
\fB \- T\fR \fI SECONDS\fR , \fB \- \- timeout=\fR \fI SECONDS\fR
.RS 4
Connection timeout to use when trying to talk to hosts, in
\fI SECONDS\fR \& .
.RE
.PP
\fB \- s\fR , \fB \- \- sudo\fR
.RS 4
Force all plays to use sudo, even if not marked as such\& .
.RE
.PP
\fB \- u\fR \fI USERNAME\fR , \fB \- \- user=\fR \fI USERNAME\fR
.RS 4
Use this remote user name on playbook steps that do not indicate a user name to run as\& .
.RE
.PP
\fB \- c\fR \fI CONNECTION\fR , \fB \- \- connection=\fR \fI CONNECTION\fR
.RS 4
Connection type to use\& . Possible options are
\fI paramiko\fR
(SSH),
\fI ssh\fR , and
\fI local\fR \& .
\fI local\fR
is mostly useful for crontab or kickstarts\& .
.RE
.PP
\fB \- l\fR \fI SUBSET\fR , \fB \- \- limit=\fR \fI SUBSET\fR
.RS 4
Further limits the selected host/group patterns\& .
.RE
.PP
\fB \- \- list\- hosts\fR
.RS 4
Outputs a list of matching hosts; does not execute anything else\& .
.RE
.SH "ENVIRONMENT"
.sp
The following environment variables may be specified\& .
.sp
ANSIBLE_HOSTS \(em Override the default ansible hosts file
.sp
ANSIBLE_LIBRARY \(em Override the default ansible module library path
.SH "FILES"
.sp
/etc/ansible/hosts \(em Default inventory file
.sp
/usr/share/ansible/ \(em Default module library
.sp
/etc/ansible/ansible\& .cfg \(em Config file, used if present
.sp
~/\& .ansible\& .cfg \(em User config file, overrides the default config if present
.SH "AUTHOR"
.sp
Ansible was originally written by Michael DeHaan\& . See the AUTHORS file for a complete list of contributors\& .
.SH "COPYRIGHT"
.sp
Copyright \(co 2012, Michael DeHaan
.sp
Ansible is released under the terms of the GPLv3 License\& .
.SH "SEE ALSO"
.sp
\fB ansible\fR (1), \fB ansible\- pull\fR (1), \fB ansible\- doc\fR (1)
.sp
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