summaryrefslogtreecommitdiff
path: root/lib/ansible/cli
Commit message (Collapse)AuthorAgeFilesLines
* ansible doc does not need plugin deprecation errorBrian Coca2017-01-121-2/+2
| | | | (cherry picked from commit 74421f42e1e20be040161030c8504fea381917fe)
* Correctly set loader path when using list tags/tasksJames Cammarata2016-12-211-0/+6
| | | | | | Fixes #19398 (cherry picked from commit b688f1147474df7ab0c42a62f8c8258edcd9b425)
* Transform vault_pass into text when we read it in from the user or a file. ↵Toshio Kuratomi2016-12-011-4/+4
| | | | | | | (#18699) Fixes #18684 (cherry picked from commit 74a10d7ca2329117bbb00a122a256f3df50179bd)
* Python 3 fixes for ansible-doc.Matt Clay2016-11-031-2/+2
| | | | (cherry picked from commit 88dbb5a630c96a87e72f4bc5712ea008bc9820de)
* Fix 'vault rekey' with vault secret env varAdrian Likins2016-11-014-23/+29
| | | | | | | | | | | | | | | | | | | if ANSIBLE_VAULT_PASSWORD_FILE is set, 'ansible-vault rekey myvault.yml' will fail to prompt for the new vault password file, and will use None. Fix is to split out 'ask_vault_passwords' into 'ask_vault_passwords' and 'ask_new_vault_passwords' to make the logic simpler. And then make sure new_vault_pass is always set for 'rekey', and if not, then call ask_new_vault_passwords() to set it. ask_vault_passwords() would return values for vault_pass and new vault_pass, and vault cli previously would not prompt for new_vault_pass if there was a vault_pass set via a vault password file. Fixes #18247 (cherry picked from commit 309f54b709d489114841530663642b7f3ad262ec)
* Quick ansible-doc fix -- don't run pager if there was an error (no text)Brian J. Dowling2016-10-131-1/+2
| | | | (cherry picked from commit 2be2f353739d4c0eec5f4dd6cdcbe28adcb2c78b)
* better handling of host lists (#17781)Brian Coca2016-09-281-3/+6
| | | | | | | | | | * better handling of host lists fixes #17762 * corrected message * fixed extras space
* win_shell/win_command changes + tests (#17557)Matt Davis2016-09-151-1/+1
|
* Fix galaxy's parsing of the command line. (#17569)Toshio Kuratomi2016-09-142-4/+46
| | | | | | | Also make the parsing of the action in both galaxy and vault more robust. Fixes #17534 May Fix #17563
* Don't use the shell to catch output, catch output in python. Fixes #17137 ↵Matt Martz2016-09-091-3/+6
| | | | (#17449)
* Flush cache (#17445)Brian Coca2016-09-071-0/+5
| | | | | | | | * transfer module based on pipelining, not tmp fixes #17381 * added missing flush cache option back
* Fix NameError on 'ansible-vault view' (#17440)Adrian Likins2016-09-071-1/+1
|
* Move uses of to_bytes, to_text, to_native to use the module_utils version ↵Toshio Kuratomi2016-09-065-31/+27
| | | | | | | | (#17423) We couldn't copy to_unicode, to_bytes, to_str into module_utils because of licensing. So once created it we had two sets of functions that did the same things but had different implementations. To remedy that, this change removes the ansible.utils.unicode versions of those functions.
* Dynamic role include (#17401)Brian Coca2016-09-051-0/+4
| | | | | | | | | | | | | | * dynamic role_include * more fixes for dynamic include roles * set play yfrom iterator when dynamic * changes from jimi-c * avoid modules that break ad hoc TODO: should really be a config
* include_role (role revamp implementation) (#17232)Brian Coca2016-08-261-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * attempt #11 to role_include * fixes from jimi-c * do not override load_data, move all to load * removed debugging * implemented tasks_from parameter, must break cache * fixed issue with cache and tasks_from * make resolution of from_tasks prioritize literal * avoid role dependency dedupe when include_role * fixed role deps and handlers are now loaded * simplified code, enabled k=v parsing used example from jimi-c * load role defaults for task when include_role * fixed issue with from_Tasks overriding all subdirs * corrected priority order of main candidates * made tasks_from a more generic interface to roles * fix block inheritance and handler order * allow vars: clause into included role * pull vars already processed vs from raw data * fix from jimi-c blocks i broke * added back append for dynamic includes * only allow for basename in from parameter * fix for docs when no default * fixed notes * added include_role to changelog
* Enable most unittests on python3 (just some vault unittests and a logging ↵Toshio Kuratomi2016-08-251-2/+2
| | | | | | | | | | one left) (#17240) Make some python3 fixes to make the unittests pass: * galaxy imports * dictionary iteration in role requirements * swap_stdout helper for unittests * Normalize to text string in a facts.py function
* xrange and izip_longest aren't available in vanilla python3 (#17226)Toshio Kuratomi2016-08-241-1/+1
| | | | | Fixes for these are either rewriting to get rid of the need for the functions or using six.moves to get equivalent functions for both python2 and python3
* Merge pull request #17202 from chouseknecht/develChris Houseknecht2016-08-241-0/+1
|\ | | | | Local variable *choices* referenced before assignment
| * Fixes 'choices referenced before assignment' error on line #287.chouseknecht2016-08-231-0/+1
| |
* | Migrate basestring to a python3 compatible type (#17199)Toshio Kuratomi2016-08-231-3/+3
|/
* slightly better presentation docsBrian Coca2016-08-151-7/+6
| | | | | - description items are now separated - choices/defaults start at their own line
* added check and diff mode control to consoleBrian Coca2016-07-251-0/+16
| | | | | also expanded mk_boolean to allow for 'on/off' fixes #16815
* ansible-doc now notes when module has action pluginBrian Coca2016-07-141-1/+10
|
* correctly set become value in consoleBrian Coca2016-07-071-1/+1
| | | | fixes #16614
* Fixes #12309 (#14121)w1r0x2016-06-231-0/+11
|
* Merge pull request #12807 from Lujeni/develJames Cammarata2016-06-181-5/+17
|\ | | | | Ansible-galaxy requirements support a include directive
| * Ansible-galaxy support the include directiveTHEBAULT Julien2016-02-081-5/+17
| |
* | minor optimizationBrian Coca2016-06-031-2/+1
| |
* | Show a better error message when there is too much arguments (#16119)Michael Scherer2016-06-031-1/+4
| | | | | | | | | | | | | | | | If someone run: ansible all -m file state=present The error message is "Missing target hosts" which is misleading, since the target hosts is here, the problem is the missing '-a'.
* | Force relative role paths to be absolute and correct errors about missing ↵jctanner2016-06-031-3/+2
| | | | | | | | | | path(s). (#16088) Addresses #10811
* | galaxy info displayed 'galaxy_info' section wrongAdrian Likins2016-05-311-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The output of 'ansible-galaxy info' was formatting the 'galaxy_info' key with one char per line. Previously, when building the output string, items in role_info that had a dict for value, the label for it's key ('galaxy_info' for ex) was being added to the text list in addition to being appended. Only the append is needed. Also added a unit test in test/units/cli/test_galaxy.py, but skip it on py3 until galaxy is py3 compatible. fixes #15177
* | fixed confusing reporting when no hosts are matchedBrian Coca2016-05-312-5/+11
| | | | | | | | it was hitting 'empty inventory' warning.
* | fix version/help when missing actionBrian Coca2016-05-312-45/+29
| | | | | | | | also fixed issues with galaxy cli options
* | treat roles_path as the list it is for galaxy listBrian Coca2016-05-311-16/+17
| |
* | Fix missing ignore_certs (#16018)Chris Houseknecht2016-05-271-5/+5
| |
* | Make 'required' optional in module docs (#15906)Matt Davis2016-05-181-5/+3
| | | | | | Updated module dev docs, doc build, ansible-doc to match
* | fixes-#15685-tools-that-paginate-show-spurious-less-output: less --version ↵Kamjar Gerami2016-05-091-1/+1
| | | | | | | | | | outputs to standard out not to standard error so this changes the redirect from 2> to > (#15720) fixes-#15685-tools-that-paginate-show-spurious-less-output: Updated redirect to include stderr as well as stdout to not show any errors on screen
* | made ansible-doc complain on missing 'requried'Brian Coca2016-05-051-1/+3
| |
* | Merge pull request #15656 from abadger/ziploader-namespaceToshio Kuratomi2016-04-291-1/+1
|\ \ | | | | | | Fix ziploader for the cornercase of ansible invoking ansible.
| * | Fix ziploader for the cornercase of ansible invoking ansible.Toshio Kuratomi2016-04-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make ziploader's ansible and ansible.module_utils libraries into namespace packages. * Move __version__ and __author__ from ansible/__init__ to ansible/release.py. This is because namespace packages only load one __init__.py. If that is not the __init__.py with the author and version info then those won't be available. * In ziplaoder, move the version ito ANSIBLE_CONSTANTS. * Change PluginLoader to properly construct the path to the plugins even when namespace packages are present.
* | | API now connects to server lazily (#15632)Brian Coca2016-04-281-9/+5
|/ / | | | | | | | | | | | | | | This should fix most issues with offline operation. Fixes #14486 Fixes #13991 Alternate to #15363 and #15593
* | fixes to vault/copyBrian Coca2016-04-142-0/+4
| | | | | | | | | | | | | | rm _del_ as it might leak memory renamed to tmp file cleanup added exception handling when traversing file list, even if one fails try rest added cleanup to finally to ensure removal in most cases
* | removed unused code for signal handlingBrian Coca2016-04-131-16/+0
| |
* | Adds 'ansible_check_mode' boolean magic variableStrahinja Kustudić2016-04-082-0/+6
| | | | | | | | | | * Makes it possible to pass any options variable to VariableManager by changing `load_options_vars(options)` in `lib/ansible/utils/vars.py`
* | Merge pull request #15256 from alikins/galaxy_roles_path_fix_15255Chris Houseknecht2016-04-032-1/+19
|\ \ | | | | | | Fix galaxy roles_path cli usage. (#15255)
| * | Fix galaxy roles_path cli usage.Adrian Likins2016-04-022-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | If we specify a roles_path from the cli, use a optparse action callback to make sure the roles_path is set to a path list. Fixes #15255
* | | verifies required is a booleanBrian Coca2016-04-011-2/+8
| | |
* | | Add '--skip-tags' to ansible-pullMalte Krupa2016-03-301-0/+2
| | |
* | | Should be errors=strict since we don't want to end up matching hosts like '???'Toshio Kuratomi2016-03-241-1/+1
| | |
* | | Fix using non-ascii for inventory hostname patterns with the CLI.Toshio Kuratomi2016-03-241-1/+2
| | |