2012-08-14 14:46:16 +00:00
'\" t
. \" Title: ansible
2014-01-02 22:36:52 +00:00
. \" Author: :doctype:manpage
2014-12-09 18:49:05 +00:00
. \" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
2015-07-22 08:56:50 +00:00
. \" Date: 07/22/2015
2012-08-14 14:46:16 +00:00
. \" Manual: System administration commands
2015-07-22 08:56:50 +00:00
. \" Source: Ansible %VERSION%
2012-08-14 14:46:16 +00:00
. \" Language: English
. \"
2015-07-22 08:56:50 +00:00
.TH "ANSIBLE" "1" "07/22/2015" "Ansible %VERSION%" "System administration commands"
2014-05-26 12:12:39 +00:00
. \" -----------------------------------------------------------------
. \" * 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 '
2012-08-14 14:46:16 +00:00
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
.SH "NAME"
ansible-pull \- set up a remote copy of ansible on each managed node
.SH "SYNOPSIS"
.sp
2014-12-09 18:49:05 +00:00
ansible\- pull \- d DEST \- U URL [options] [ <filename\& .yml> ]
2012-08-14 14:46:16 +00:00
.SH "DESCRIPTION"
.sp
2014-01-02 22:36:52 +00:00
\fB Ansible\fR is an extra\- simple tool/framework/API for doing \* (Aqremote things\* (Aq over SSH\& .
2012-08-14 14:46:16 +00:00
.sp
2013-09-13 22:39:14 +00:00
Use ansible\- pull to set up a remote copy of ansible on each managed node, each set to run via cron and update playbook source via a source repository\& . This inverts the default \fB push\fR architecture of ansible into a \fB pull\fR architecture, which has near\- limitless scaling potential\& .
2012-08-14 14:46:16 +00:00
.sp
The setup playbook can be tuned to change the cron frequency, logging locations, and parameters to ansible\- pull\& .
.sp
This is useful both for extreme scale\- out as well as periodic remediation\& . Usage of the \fI fetch\fR module to retrieve logs from ansible\- pull runs would be an excellent way to gather and analyze remote logs from ansible\- pull\& .
2013-09-13 22:39:14 +00:00
.SH "OPTIONAL ARGUMENT"
.PP
\fB filename\& .yml\fR
.RS 4
2013-11-18 23:55:49 +00:00
The name of one the YAML format files to run as an ansible playbook\& . This can be a relative path within the checkout\& . If not provided, ansible\- pull will look for a playbook based on the host\(cq s fully\- qualified domain name, on the host hostname and finally a playbook named
2013-09-13 22:39:14 +00:00
\fB local\& .yml\fR \& .
.RE
2012-08-14 14:46:16 +00:00
.SH "OPTIONS"
.PP
2015-07-22 08:56:50 +00:00
\fB \- \- accept\- host\- key\fR
2012-08-14 14:46:16 +00:00
.RS 4
2015-07-22 08:56:50 +00:00
Adds the hostkey for the repo URL if not already added\& .
2012-08-14 14:46:16 +00:00
.RE
.PP
2015-07-22 08:56:50 +00:00
\fB \- K\fR , \fB \- \- ask\- sudo\- pass\fR
2012-08-14 14:46:16 +00:00
.RS 4
2015-07-22 08:56:50 +00:00
Ask for sudo password\& .
2012-08-14 14:46:16 +00:00
.RE
.PP
\fB \- C\fR \fI CHECKOUT\fR , \fB \- \- checkout=\fR \fI CHECKOUT\fR
.RS 4
2013-09-13 22:39:14 +00:00
Branch/Tag/Commit to checkout\& . If not provided, uses default behavior of module used to check out playbook repository\& .
.RE
.PP
2015-07-22 08:56:50 +00:00
\fB \- d\fR \fI DEST\fR , \fB \- \- directory=\fR \fI DEST\fR
.RS 4
Directory to checkout repository into\& . If not provided, a subdirectory of ~/\& .ansible/pull/ will be used\& .
.RE
.PP
\fB \- e\fR \fI EXTRA_VARS\fR , \fB \- \- extra\- vars=\fR \* (AqEXTRA_VARS*
.RS 4
Set additional variables as key=value or YAML/JSON
.RE
.PP
2013-11-18 23:55:49 +00:00
\fB \- f\fR , \fB \- \- force\fR
.RS 4
Force running of playbook even if unable to update playbook repository\& . This can be useful, for example, to enforce run\- time state when a network connection may not always be up or possible\& .
.RE
.PP
2015-07-22 08:56:50 +00:00
\fB \- h\fR , \fB \- \- help\fR
.RS 4
Show the help message and exit\& .
.RE
.PP
2013-09-13 22:39:14 +00:00
\fB \- i\fR \fI PATH\fR , \fB \- \- inventory=\fR \fI PATH\fR
.RS 4
The
\fI PATH\fR
to the inventory hosts file\& . This can be a relative path within the checkout\& .
.RE
.PP
2015-07-22 08:56:50 +00:00
\fB \- \- key\- file=\fR \fI KEYFILE\fR
2013-09-13 22:39:14 +00:00
.RS 4
2015-07-22 08:56:50 +00:00
Pass
\fI \- i <key_file>\fR
to the SSH arguments used by git\& .
2013-09-13 22:39:14 +00:00
.RE
.PP
\fB \- m\fR \fI NAME\fR , \fB \- \- module\- name=\fR \fI NAME\fR
.RS 4
Module used to checkout playbook repository\& . Defaults to git\& .
2012-08-14 14:46:16 +00:00
.RE
2014-01-02 22:36:52 +00:00
.PP
\fB \- o\fR , \fB \- \- only\- if\- changed\fR
.RS 4
2015-07-22 08:56:50 +00:00
Only run the playbook if the repository has been updated\& .
.RE
.PP
\fB \- \- purge\fR
.RS 4
Purge the checkout after the playbook is run\& .
.RE
.PP
\fB \- s\fR \fI SLEEP\fR , \fB \- \- sleep=\fR \fI SLEEP\fR
.RS 4
Sleep for random interval (between 0 and SLEEP number of seconds) before starting\& . This is a useful way ot disperse git requests\& .
.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 \- U\fR \fI URL\fR , \fB \- \- url=\fR \fI URL\fR
.RS 4
URL of the playbook repository to checkout\& .
.RE
.PP
\fB \- \- vault\- password\- file=\fR \fI VAULT_PASSWORD_FILE\fR
.RS 4
Vault password file\& .
.RE
.PP
\fB \- v\fR , \fB \- \- verbose\fR
.RS 4
Pass \- vvv to ansible\- playbook\& .
2014-01-02 22:36:52 +00:00
.RE
2012-08-14 14:46:16 +00:00
.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
2013-04-03 00:47:57 +00:00
\fB ansible\fR (1), \fB ansible\- playbook\fR (1), \fB ansible\- doc\fR (1)
2012-08-14 14:46:16 +00:00
.sp
2014-05-26 12:12:39 +00:00
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
2015-05-05 13:24:36 +00:00
.SH "AUTHOR"
.PP
\fB :doctype:manpage\fR
.RS 4
Author.
.RE