| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
(cherry picked from commit 74421f42e1e20be040161030c8504fea381917fe)
|
|
|
|
|
|
| |
Fixes #19398
(cherry picked from commit b688f1147474df7ab0c42a62f8c8258edcd9b425)
|
|
|
|
|
|
|
| |
(#18699)
Fixes #18684
(cherry picked from commit 74a10d7ca2329117bbb00a122a256f3df50179bd)
|
|
|
|
| |
(cherry picked from commit 88dbb5a630c96a87e72f4bc5712ea008bc9820de)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
(cherry picked from commit 2be2f353739d4c0eec5f4dd6cdcbe28adcb2c78b)
|
|
|
|
|
|
|
|
|
|
| |
* better handling of host lists
fixes #17762
* corrected message
* fixed extras space
|
| |
|
|
|
|
|
|
|
| |
Also make the parsing of the action in both galaxy and vault more
robust.
Fixes #17534
May Fix #17563
|
|
|
|
| |
(#17449)
|
|
|
|
|
|
|
|
| |
* transfer module based on pipelining, not tmp
fixes #17381
* added missing flush cache option back
|
| |
|
|
|
|
|
|
|
|
| |
(#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
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
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
|
|\
| |
| | |
Local variable *choices* referenced before assignment
|
| | |
|
|/ |
|
|
|
|
|
| |
- description items are now separated
- choices/defaults start at their own line
|
|
|
|
|
| |
also expanded mk_boolean to allow for 'on/off'
fixes #16815
|
| |
|
|
|
|
| |
fixes #16614
|
| |
|
|\
| |
| | |
Ansible-galaxy requirements support a include directive
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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'.
|
| |
| |
| |
| |
| | |
path(s). (#16088)
Addresses #10811
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| | |
it was hitting 'empty inventory' warning.
|
| |
| |
| |
| | |
also fixed issues with galaxy cli options
|
| | |
|
| | |
|
| |
| |
| | |
Updated module dev docs, doc build, ansible-doc to match
|
| |
| |
| |
| |
| | |
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
|
| | |
|
|\ \
| | |
| | | |
Fix ziploader for the cornercase of ansible invoking ansible.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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.
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
This should fix most issues with offline operation.
Fixes #14486
Fixes #13991
Alternate to #15363 and #15593
|
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
| |
| |
| |
| |
| | |
* Makes it possible to pass any options variable to VariableManager
by changing `load_options_vars(options)` in `lib/ansible/utils/vars.py`
|
|\ \
| | |
| | | |
Fix galaxy roles_path cli usage. (#15255)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|