| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove old egg-info files before creating new ones
Currently, setup.py generates egg files then they are deleted. This change
fixes this behavior and matches that in env-setup.
* Do not try to move ansible*egg-info to lib/
setup.py creates the ansible.egg-info in lib/ so this step is unnecessary. Matches env-setup behavior.
* Better test for number of arguments in argv
This prevents an erronous error message from being thrown since set -q returns an error code with the number of variables not defined, resulting in a non-zero exit if no arguments are passed.
Indent case statement within switch statement.
(cherry picked from commit cf8639ff6286e9ba1bdc67777ca78037fdde0d8d)
|
|
|
|
|
|
|
| |
modules need to have _ansible_selinux_special_fs passed in
as an arg, so add the default to the args.
(cherry picked from commit cf39a1abab750c907451f8ac94e94136527af6d4)
|
|
|
|
|
|
| |
Currently, "ansible localhost -m setup" can fail silently during the
run of gen_distribution_version_testcase.py, resulting in incorrect
output. Use check_output() rather than communicate() and handle
the exception if we get a nonzero return value.
|
|
|
|
|
|
|
|
|
|
|
| |
As suggested in feedback on
https://github.com/ansible/ansible/pull/17575, add
os_family to test_distribution_version. Add the
correct os_family to the existing testcase data
entries.
Also add os_family to the output of
gen_distribution_version_testcase.py so any new
generated entries will contain this data.
|
|
|
|
|
|
|
|
| |
(#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.
|
|
|
| |
People can still override the detection using PYTHON_BIN
|
|\
| |
| | |
Fewer deps for 'make webdocs' from top level
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously it also built the MANPAGES target
requiring asciidoc and libxml, before starting
a 'make docs' in docsite.
Also change the #! line in
hacking/dump_playbook_attributes.py to not specify
python2... yet.
|
| | |
|
| | |
|
|/
|
|
| |
people aren't confused when they google for information.information (#16715)
|
|
|
| |
Fixes #16299
|
|
|
| |
Updated module dev docs, doc build, ansible-doc to match
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* add tests for centos6, rhel6 and rhel7
* gen_distribution_version_testcase with python2.6
* remove unused imports
* fix redhat/vmware/... parsing
* add centos7 test case
|
|
|
| |
The first echo and setup.py steps are not quiet and result in output that is annoying if your Fish is configured to source the file.
|
| |
|
|
|
|
| |
Get test-module's debugger switch to do something useful with ziploader modules
|
|\
| |
| | |
Distribution version tests
|
| |
| |
| |
| | |
* also use json instead of pprint
|
|/ |
|
|
|
|
| |
Need to fix test-module to not pass the lock either
|
|
|
|
|
|
|
|
|
| |
This makes our recursive, ast.parse performance measures as fast as
pre-ziploader baseline.
Since this unittest isn't testing that the returned module data is
correct we don't need to worry about os.rename not having any module
data. Should devise a separate test for the module and caching code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Could only have one alias before. Subsequent aliases overrode the
previous ones. Now multiple aliases work.
* Fix BLACKLISTED_MODULES. Previously, modules were listed in the
generated documentation despite being blacklisted
* Deprecated modules form extras were showing the (E) tag and not the
(D) tag. Reversed that now (Probably not necessary to also show the
E tag).
* Sort the deprecated modules alphabetically in the Category docs as
well as the list of all modules
* Optimization: Previously rendered the modules to rst twice once in all
group and once in individual categories. Fixed to only render them
once.
* Add fireball to blacklist and remove async_status (as people need to
use that).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Ziploader proof of concept (jimi-c)
* Cleanups to proof of concept ziploader branch:
* python3 compatible base64 encoding
* zipfile compression (still need to enable toggling this off for
systems without zlib support in python)
* Allow non-wildcard imports (still need to make this recusrsive so that
we can have module_utils code that imports other module_utils code.)
* Better tracebacks: module filename is kept and module_utils directory
is kept so that tracebacks show the real filenames that the errors
appear in.
* Make sure we import modules that are used into the module_utils files that they are used in.
* Set ansible version in a more pythonic way for ziploader than we were doing in module replacer
* Make it possible to set the module compression as an inventory var
This may be necessary on systems where python has been compiled without
zlib compression.
* Refactoring of module_common code:
* module replacer only replaces values that make sense for that type of
file (example: don't attempt to replace python imports if we're in
a powershell module).
* Implement configurable shebang support for ziploader wrapper
* Implement client-side constants (for SELINUX_SPECIAL_FS and SYSLOG)
via environment variable.
* Remove strip_comments param as we're never going to use it (ruins line
numbering)
* Don't repeat ourselves about detecting REPLACER
* Add an easy way to debug
* Port test-module to the ziploader-aware modify_module()
* strip comments and blank lines from the wrapper so we send less over the wire.
* Comments cleanup
* Remember to output write the module line itself in powershell modules
* for line in lines strips the newlines so we have to add them back in
|
|
|
|
| |
hardcode adding with_ for tasks
|
| |
|
| |
|
|
|
|
|
|
| |
order is now predictable
now correctly substitutes loop for with_
adds local_action to action
|
| |
|
|
|
|
| |
TODO: needs links/info and conditionals added
|
|
|
|
| |
fixes http://github.com/ansible/ansible-modules-core/issues/3061
|
|
|
|
| |
fixes #14371
|
| |
|
|
|
|
|
|
| |
The `webdocs` make target fails under Python 3. It fails due to a variety of
syntax errors, such as the use of `except Foo, e` and `print 'foo'`. Fix #13463
by making code compatible with both Python 2 and 3.
|
|
|
|
| |
Needed on OpenBSD which does not support -delete.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Display a warning when a dict key is overwritten by pyyaml
Fixes #12888
|
|
|
|
| |
make it easy for distributions to override the bunndled copy if they have a new enough version.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Replace .iteritems() with six.iteritems() everywhere except in
module_utils (because there's no 'six' on the remote host). And except
in lib/ansible/galaxy/data/metadata_template.j2, because I'm not sure
six is available there.
|
| |
|
| |
|