table of contents
- stretch 2.2.1.0-2+deb9u1
- testing 2.7.7+dfsg-1
- stretch-backports 2.7.5+dfsg-1~bpo9+1
- unstable 2.7.8+dfsg-1
ANSIBLE(1) | System administration commands | ANSIBLE(1) |
NAME¶
ansible-pull - pull playbooks from VCS server and run them using this machine as the target.SYNOPSIS¶
ansible-pull -U URL [options] [ <filename.yml> ]DESCRIPTION¶
Ansible is an extra-simple tool/framework/API for doing 'remote things'.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 push architecture of ansible into a pull architecture, which has near-limitless scaling potential.
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.
OPTIONAL ARGUMENT¶
filename.ymlOPTIONS¶
--accept-host-key-b, --become
-K, --ask-become-pass
-k, --ask-pass
--ask-su-pass
--ask-sudo-pass
--ask-vault-pass
-C CHECKOUT, --checkout=CHECKOUT
-d DEST, --directory=DEST
-e EXTRA_VARS, --extra-vars='EXTRA_VARS
-f, --force
--full
-h, --help
-i PATH, --inventory=PATH
--private-key=PRIVATE_KEY_FILE
-m NAME, --module-name=NAME
-o, --only-if-changed
--purge
-s SLEEP, --sleep=SLEEP
--ssh-common-args='-o ProxyCommand="ssh -W %h:%p ..." ...'
--sftp-extra-args='-f ...'
--scp-extra-args='-l ...'
--ssh-extra-args='-R ...'
-t TAGS, --tags=TAGS
-U URL, --url=URL
--vault-password-file=VAULT_PASSWORD_FILE
--clean
--track-subs
-v, --verbose
INVENTORY¶
Ansible stores the hosts it can potentially operate on in an inventory. This can be an ini-like file, a script, directory or a list. The ini 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.Ranges of hosts are also supported. For more information and additional options, see the documentation on http://docs.ansible.com/.
ENVIRONMENT¶
The following environment variables may be specified.ANSIBLE_INVENTORY — Override the default ansible inventory file
ANSIBLE_LIBRARY — Override the default ansible module library path
ANSIBLE_CONFIG — Override the default ansible config file
Many more are available for most options in ansible.cfg
FILES¶
/etc/ansible/hosts — Default inventory file/usr/share/ansible/ — Default module library
/etc/ansible/ansible.cfg — Config file, used if present
~/.ansible.cfg — User config file, overrides the default config if present
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¶
ansible(1) ansible-playbook(1), ansible-doc(1), ansible-vault(1), ansible-galaxy(1)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
01/16/2017 | Ansible 2.2.1.0 |