2012-08-14 14:46:16 +00:00
|
|
|
ansible(1)
|
|
|
|
=========
|
|
|
|
:doctype:manpage
|
|
|
|
:man source: Ansible
|
|
|
|
:man version: %VERSION%
|
|
|
|
:man manual: System administration commands
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
ansible-pull - set up a remote copy of ansible on each managed node
|
|
|
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2014-10-22 19:40:41 +00:00
|
|
|
ansible-pull -d DEST -U URL [options] [ <filename.yml> ]
|
2012-08-14 14:46:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
|
|
|
*Ansible* is an extra-simple tool/framework/API for doing \'remote things' over
|
|
|
|
SSH.
|
|
|
|
|
|
|
|
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
|
2013-07-23 17:45:40 +00:00
|
|
|
a source repository. This inverts the default *push* architecture of
|
|
|
|
ansible into a *pull* architecture, which has near-limitless scaling
|
|
|
|
potential.
|
2012-08-14 14:46:16 +00:00
|
|
|
|
|
|
|
The setup playbook can be tuned to change the cron frequency, logging
|
|
|
|
locations, and parameters to ansible-pull.
|
|
|
|
|
|
|
|
This is useful both for extreme scale-out as well as periodic
|
|
|
|
remediation. Usage of the 'fetch' module to retrieve logs from
|
|
|
|
ansible-pull runs would be an excellent way to gather and analyze
|
|
|
|
remote logs from ansible-pull.
|
|
|
|
|
|
|
|
|
2013-06-02 04:42:26 +00:00
|
|
|
OPTIONAL ARGUMENT
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
*filename.yml*::
|
|
|
|
|
|
|
|
The name of one the YAML format files to run as an ansible playbook. This can
|
2013-07-23 17:45:40 +00:00
|
|
|
be a relative path within the checkout. If not provided, ansible-pull
|
2013-10-13 09:42:09 +00:00
|
|
|
will look for a playbook based on the host's fully-qualified domain name, on the
|
|
|
|
host hostname and finally a playbook named *local.yml*.
|
2013-06-02 04:42:26 +00:00
|
|
|
|
|
|
|
|
2012-08-14 14:46:16 +00:00
|
|
|
OPTIONS
|
|
|
|
-------
|
|
|
|
|
|
|
|
*-d* 'DEST', *--directory=*'DEST'::
|
|
|
|
|
2013-10-16 07:03:43 +00:00
|
|
|
Directory to checkout repository into. If not provided, a subdirectory of
|
|
|
|
~/.ansible/pull/ will be used.
|
2012-08-14 14:46:16 +00:00
|
|
|
|
|
|
|
*-U* 'URL', *--url=*'URL'::
|
|
|
|
|
2013-07-23 17:45:40 +00:00
|
|
|
URL of the playbook repository to checkout.
|
2012-08-14 14:46:16 +00:00
|
|
|
|
|
|
|
*-C* 'CHECKOUT', *--checkout=*'CHECKOUT'::
|
|
|
|
|
2013-07-23 17:45:40 +00:00
|
|
|
Branch/Tag/Commit to checkout. If not provided, uses default behavior
|
|
|
|
of module used to check out playbook repository.
|
2012-08-14 14:46:16 +00:00
|
|
|
|
2013-09-03 20:39:19 +00:00
|
|
|
*-f*, *--force*::
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2013-06-02 04:42:26 +00:00
|
|
|
*-i* 'PATH', *--inventory=*'PATH'::
|
|
|
|
|
|
|
|
The 'PATH' to the inventory hosts file. This can be a relative path within
|
2013-07-23 17:45:40 +00:00
|
|
|
the checkout.
|
2013-06-02 04:42:26 +00:00
|
|
|
|
|
|
|
*--purge*::
|
|
|
|
|
2013-07-23 17:45:40 +00:00
|
|
|
Purge the checkout after the playbook is run.
|
|
|
|
|
|
|
|
*-m* 'NAME', *--module-name=*'NAME'::
|
|
|
|
|
|
|
|
Module used to checkout playbook repository. Defaults to git.
|
2012-08-14 14:46:16 +00:00
|
|
|
|
2013-12-27 20:33:33 +00:00
|
|
|
*-o*, *--only-if-changed*::
|
|
|
|
|
|
|
|
Run the playbook only if the repository has changed
|
2012-08-14 14:46:16 +00:00
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
------
|
|
|
|
|
|
|
|
Ansible was originally written by Michael DeHaan. See the AUTHORS file
|
|
|
|
for a complete list of contributors.
|
|
|
|
|
|
|
|
|
|
|
|
COPYRIGHT
|
|
|
|
---------
|
|
|
|
|
|
|
|
Copyright © 2012, Michael DeHaan
|
|
|
|
|
|
|
|
Ansible is released under the terms of the GPLv3 License.
|
|
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
|
2013-03-19 02:31:42 +00:00
|
|
|
*ansible*(1), *ansible-playbook*(1), *ansible-doc*(1)
|
2012-08-14 14:46:16 +00:00
|
|
|
|
2014-02-11 15:59:40 +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>
|