2012-03-31 17:08:42 +02:00
'\" t
. \" Title: ansible
. \" Author: [see the "AUTHOR" section]
2012-04-27 01:56:10 +02:00
. \" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
2012-07-25 02:10:05 +02:00
. \" Date: 07/24/2012
2012-03-31 17:08:42 +02:00
. \" Manual: System administration commands
2012-07-04 20:03:59 +02:00
. \" Source: Ansible 0.6
2012-03-31 17:08:42 +02:00
. \" Language: English
. \"
2012-07-25 02:10:05 +02:00
.TH "ANSIBLE" "1" "07/24/2012" "Ansible 0\&.6" "System administration commands"
2012-03-31 17:08:42 +02:00
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
.SH "NAME"
ansible \- run a command somewhere else
.SH "SYNOPSIS"
.sp
ansible <host\- pattern> [\- f forks] [\- m module_name] [\- a args]
.SH "DESCRIPTION"
.sp
2012-04-27 01:56:10 +02:00
\fB Ansible\fR is an extra\- simple tool/framework/API for doing \' remote things\' over SSH\& .
2012-03-31 17:08:42 +02:00
.SH "ARGUMENTS"
.PP
\fB host\- pattern\fR
.RS 4
2012-03-24 03:29:51 +01:00
A name of a group in the inventory file, a shell\- like glob selecting hosts in inventory file, or any combination of the two separated by semicolons\& .
2012-03-31 17:08:42 +02:00
.RE
.SH "OPTIONS"
.PP
2012-03-24 03:29:51 +01:00
\fB \- i\fR \fI PATH\fR , \fB \- \- inventory=\fR \fI PATH\fR
2012-03-31 17:08:42 +02:00
.RS 4
2012-03-24 03:29:51 +01:00
The
\fI PATH\fR
to the inventory hosts file, which defaults to
\fI /etc/ansible/hosts\fR \& .
2012-03-31 17:08:42 +02:00
.RE
.PP
2012-03-24 03:29:51 +01:00
\fB \- f\fR \fI NUM\fR , \fB \- \- forks=\fR \fI NUM\fR
2012-03-31 17:08:42 +02:00
.RS 4
2012-03-24 03:29:51 +01:00
Level of parallelism\& .
\fI NUM\fR
is specified as an integer, the default is 5\& .
2012-03-31 17:08:42 +02:00
.RE
.PP
2012-03-24 03:29:51 +01:00
\fB \- m\fR \fI NAME\fR , \fB \- \- module\- name=\fR \fI NAME\fR
2012-03-31 17:08:42 +02:00
.RS 4
2012-03-24 03:29:51 +01:00
Execute the module called
\fI NAME\fR \& .
2012-03-31 17:08:42 +02:00
.RE
.PP
2012-03-24 03:29:51 +01:00
\fB \- M\fR \fI DIRECTORY\fR , \fB \- \- module\- path=\fR \fI DIRECTORY\fR
2012-03-31 17:08:42 +02:00
.RS 4
2012-03-24 03:29:51 +01:00
The
\fI DIRECTORY\fR
to load modules from\& . The default is
\fI /usr/share/ansible\fR \& .
2012-03-31 17:08:42 +02:00
.RE
.PP
2012-04-27 01:56:10 +02:00
\fB \- a\fR \' \fI ARGUMENTS\fR \' , \fB \- \- args=\fR \' \fI ARGUMENTS\fR \'
2012-03-31 17:08:42 +02:00
.RS 4
2012-03-24 03:29:51 +01:00
The
\fI ARGUMENTS\fR
to pass to the module\& .
2012-03-31 17:08:42 +02:00
.RE
2012-04-17 17:39:51 +02:00
.PP
2012-03-31 17:08:42 +02:00
\fB \- k\fR , \fB \- \- ask\- pass\fR
2012-04-17 17:39:51 +02:00
.RS 4
2012-03-31 17:08:42 +02:00
Prompt for the SSH password instead of assuming key\- based authentication with ssh\- agent\& .
2012-04-17 17:39:51 +02:00
.RE
.PP
2012-04-14 01:40:40 +02:00
\fB \- K\fR , \fB \- \- ask\- sudo\- pass\fR
2012-04-17 17:39:51 +02:00
.RS 4
2012-04-14 01:40:40 +02:00
Prompt for the password to use with \- \- sudo, if any
2012-04-17 17:39:51 +02:00
.RE
.PP
2012-03-31 17:08:42 +02:00
\fB \- o\fR , \fB \- \- one\- line\fR
2012-04-17 17:39:51 +02:00
.RS 4
2012-03-31 17:08:42 +02:00
Try to output everything on one line\& .
2012-04-17 17:39:51 +02:00
.RE
.PP
2012-04-14 01:40:40 +02:00
\fB \- s\fR , \fB \- \- sudo\fR
2012-04-17 17:39:51 +02:00
.RS 4
2012-04-14 01:40:40 +02:00
Run the command as the user given by \- u and sudo to root\& .
2012-04-17 17:39:51 +02:00
.RE
.PP
2012-03-24 03:29:51 +01:00
\fB \- t\fR \fI DIRECTORY\fR , \fB \- \- tree=\fR \fI DIRECTORY\fR
2012-04-17 17:39:51 +02:00
.RS 4
Save contents in this output
\fI DIRECTORY\fR , with the results saved in a file named after each host\& .
.RE
.PP
2012-03-24 03:29:51 +01:00
\fB \- T\fR \fI SECONDS\fR , \fB \- \- timeout=\fR \fI SECONDS\fR
2012-04-17 17:39:51 +02:00
.RS 4
Connection timeout to use when trying to talk to hosts, in
\fI SECONDS\fR \& .
.RE
.PP
2012-03-24 03:29:51 +01:00
\fB \- B\fR \fI NUM\fR , \fB \- \- background=\fR \fI NUM\fR
2012-04-17 17:39:51 +02:00
.RS 4
Run commands in the background, killing the task after
\fI NUM\fR
seconds\& .
.RE
.PP
2012-03-24 03:29:51 +01:00
\fB \- P\fR \fI NUM\fR , \fB \- \- poll=\fR \fI NUM\fR
2012-04-17 17:39:51 +02:00
.RS 4
Poll a background job every
\fI NUM\fR
seconds\& . Requires
\fB \- B\fR \& .
.RE
.PP
2012-03-24 03:29:51 +01:00
\fB \- u\fR \fI USERNAME\fR , \fB \- \- remote\- user=\fR \fI USERNAME\fR
2012-04-17 17:39:51 +02:00
.RS 4
Use this remote
\fI USERNAME\fR
instead of root\& .
.RE
.PP
2012-05-07 00:32:43 +02:00
\fB \- U\fR \fI SUDO_USERNAME\fR , \fB \- \- sudo\- user=\fR \fI SUDO_USERNAME\fR
.RS 4
Sudo to
\fI SUDO_USERNAME\fR
instead of root\& . Implies \- \- sudo\& .
.RE
.PP
2012-04-11 18:32:29 +02:00
\fB \- c\fR \fI CONNECTION\fR , \fB \- \- connection=\fR \fI CONNECTION\fR
2012-04-17 17:39:51 +02:00
.RS 4
Connection type to use\& . Possible options are
\fI paramiko\fR
(SSH) and
\fI local\fR \& . Local is mostly useful for crontab or kickstarts\& .
.RE
2012-03-31 17:08:42 +02:00
.SH "INVENTORY"
.sp
2012-07-25 02:10:05 +02:00
Ansible stores the hosts it can potentially operate on in an inventory file\& . The syntax is one host per line\& . Groups headers are allowed and are included on their own line, enclosed in square brackets that start the line\& .
.sp
Ranges of hosts are also supported\& . For more information and additional options, see the documentation on http://ansible\& .github\& .com/\& .
2012-03-31 17:08:42 +02:00
.SH "FILES"
.sp
/etc/ansible/hosts \(em Default inventory file
.sp
/usr/share/ansible/ \(em Default module library
.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
\fB ansible\- playbook\fR (1)
.sp
Extensive documentation as well as IRC and mailing list info is available on the ansible home page: https://ansible\& .github\& .com/