summaryrefslogtreecommitdiffstats
path: root/bin/ansible-pull (follow)
Commit message (Collapse)AuthorAgeFilesLines
* set checkout destination directory to be full pathMatt Lesko2013-07-051-0/+2
| | | | | we chdir into this path and read the playbook/inventory if a non-absolute path is given on the command line, that will fail
* Merge branch 'option-updates' of git://github.com/jlund/ansible into develMichael DeHaan2013-07-011-6/+6
|\ | | | | | | | | Conflicts: bin/ansible-pull
| * Updates to Ansible command optionsJoshua Lund2013-06-271-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Moved the --list-hosts option that is common to both `ansible` and `ansible-playbook` into utils/__init__.py (corrects a FIXME) * Wrote new help text for the --list-hosts option that makes sense for both of the commands that it applies to * Changed the usage argument in `ansible-playbook` so that it is setup in the base_parser method the same way that it is in the `ansible` executable * Updated the help text for several options to correct typos, clarify meaning, improve readability, or fix grammatical errors. In the case of `ansible-pull`, I changed the help text so that it adheres to the same standards as the other executables.
* | Add --only-if-changed option.Stavros Korokithakis2013-06-301-5/+14
|/
* remove errant and unneeded import of ansible.constantsStephen Fromm2013-06-021-2/+0
|
* Help ansible-pull work better in bootstap environmentStephen Fromm2013-06-021-1/+10
| | | | | | | | | Add option to specify inventory. No default is defined since ansible-playbook already does this and it allows an ansible.cfg in the git repository to take precedence. Overall, this should help ansible-pull work with less setup in advance, which should be helpful in kickstart scenarios. Much of this was discussed in issue #2464.
* Add --limit to calls to ansible and ansible-playbookStephen Fromm2012-11-111-2/+3
| | | | --limit takes localhost, FQDN, and 127.0.0.1.
* Add --purge option to ansible-pullStephen Fromm2012-10-121-0/+11
| | | | Removes git checkout after playbook run.
* Clean up auto-selection of playbook and miscellaneous changesStephen Fromm2012-10-121-48/+47
| | | | | Direct any ansible-pull specific messages to stderr. Introduce try_playbook() and select_playbook() to remove try/except-y.
* change method of obtaining hostname to match ansible/library/setupMatthew Johnson2012-10-121-2/+2
|
* fetch the git repo before trying to find a playbookMatthew Johnson2012-10-121-8/+7
|
* Merge commits from copperlight's branch ansible-pull_playbook_parameter branchStephen Fromm2012-10-121-17/+81
| | | | Merged commits: 3cd25b5 and ed9fc76. Some massaging of changes applied.
* whitespace + remove deprecated YAML parser (migration script lives in ↵Michael DeHaan2012-08-071-1/+1
| | | | | | examples/scripts and warning was added in 0.6 release)
* Add some comments to ansible-pull and the example playbookMichael DeHaan2012-05-021-0/+11
|
* Simplify ansible-pull to just invoke ansible and ansible-playbookStephen Fromm2012-05-021-108/+25
| | | | | This eliminates the creation of runner and playbook instances and just invokes the processes ansible and ansible-playbook.
* Add ansible-pullStephen Fromm2012-05-021-0/+147
A first stab at a pull-based model for ansible. This does two things: 1. Invoke the git module via Runner to set up a git repository on the localhost. It sets up Runner to use transport='local' and forces the inventory to just 'localhost'. 2. Run any playbooks provided. By default, this wants to run the playbook local.yml. This also sets transport='local' and sets the host_list to a list: localhost, fqdn, and hostname. The reason for setting the host_list and not using override_hosts is because there may be plays in the playbook that are not meant for a specific host. That is, if the git repository is for the entire site and not host-specific, you don't want to override hosts and apply all plays to any given host. This has the downside of potentially running a play three times if the play is defined for 'hosts: all'.