ansible-playbook.1 3.24 KB
Newer Older
1 2 3
'\" t
.\"     Title: ansible-playbook
.\"    Author: [see the "AUTHOR" section]
4
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5
.\"      Date: 07/04/2012
6
.\"    Manual: System administration commands
7
.\"    Source: Ansible 0.6
8 9
.\"  Language: English
.\"
10
.TH "ANSIBLE\-PLAYBOOK" "1" "07/04/2012" "Ansible 0\&.6" "System administration commands"
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
.\" -----------------------------------------------------------------
.\" * 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
\fBAnsible 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
\fBfilename\&.yml\fR
.RS 4
The names of one or more YAML format files to run as ansible playbooks\&.
.RE
.SH "OPTIONS"
Michael DeHaan committed
36
.sp
37
\fB\-v\fR, \fB\-\-verbose\fR
Michael DeHaan committed
38
.sp
39
Verbose mode, more output from successful actions will be shown
40
.PP
41
\fB\-i\fR \fIPATH\fR, \fB\-\-inventory=\fR\fIPATH\fR
42
.RS 4
43 44 45 46
The
\fIPATH\fR
to the inventory hosts file, which defaults to
\fI/etc/ansible/hosts\fR\&.
47 48
.RE
.PP
49
\fB\-M\fR \fIDIRECTORY\fR, \fB\-\-module\-path=\fR\fIDIRECTORY\fR
50
.RS 4
51 52 53 54
The
\fIDIRECTORY\fR
to load modules from\&. The default is
\fI/usr/share/ansible\fR\&.
55 56
.RE
.PP
57 58 59 60 61
\fB\-e\fR \fIVARS\fR, \fB\-\-extra\-vars=\fR\fIVARS\fR
.RS 4
Extra variables to inject into a playbook, in key=value key=value format\&.
.RE
.PP
62
\fB\-f\fR \fINUM\fR, \fB\-\-forks=\fR\fINUM\fR
63
.RS 4
64 65 66
Level of parallelism\&.
\fINUM\fR
is specified as an integer, the default is 5\&.
67 68 69 70 71 72 73
.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
Michael DeHaan committed
74 75 76 77 78
\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
79
\fB\-T\fR \fISECONDS\fR, \fB\-\-timeout=\fR\fISECONDS\fR
80
.RS 4
81 82
Connection timeout to use when trying to talk to hosts, in
\fISECONDS\fR\&.
83
.RE
Michael DeHaan committed
84
.PP
85
\fB\-s\fR, \fB\-\-sudo\fR
86
.RS 4
87
Force all plays to use sudo, even if not marked as such\&.
88 89
.RE
.PP
90
\fB\-u\fR \fIUSERNAME\fR, \fB\-\-remote\-user=\fR\fIUSERNAME\fR
91
.RS 4
92
Use this remote user name on playbook steps that do not indicate a user name to run as\&.
93
.RE
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
.SH "ENVIRONMENT"
.sp
The following environment variables may specified\&.
.sp
ANSIBLE_HOSTS  \(em Override the default ansible hosts file
.sp
ANSIBLE_LIBRARY \(em Override the default ansible module library path
.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
\fBansible\fR(1)
.sp
Extensive documentation as well as IRC and mailing list info is available on the ansible home page: https://ansible\&.github\&.com/