Commit Graph

5906 Commits (dd59fc176ee964556813e3badfdbe4e914c15fa4)

Author SHA1 Message Date
Toshio Kuratomi 9af054addf Going to do this in the connection plugin
Revert "Convert to bytes later so that make_become_command can jsut operate on text type."

This reverts commit bfc082fb07.
10 years ago
Brian Coca 7f29cb9dc6 corrected role path search order
the unfraking was matching roles in current dir as it always returns a full path,
pushed to the bottom as match of last resort
fixes #13645
10 years ago
Brian Coca 43331d8c31 better module error handling
* now module errors clearly state msg=MODULE FAILURE
* module's stdout and stderr go into module_stdout and module_stderr keys
which only appear during parsing failure
* invocation module_args are deleted from results provided by action
plugin as errors can keep us from overwriting and then disclosing info that
was meant to be kept hidden due to no_log
* fixed invocation module_args set by basic.py as it was creating different
keys as the invocation in action plugin base.
* results now merge
10 years ago
Brian Coca 579a2ff739 fix no_log disclosure when using aliases 10 years ago
Toshio Kuratomi bfc082fb07 Convert to bytes later so that make_become_command can jsut operate on text type.
Conflicts:
	lib/ansible/plugins/action/__init__.py
10 years ago
Monty Taylor 8216a659fa Also convert ints to bool for type=bool 10 years ago
James Cammarata a2120a3d63 Version bump for 2.0.0-0.8.rc3 10 years ago
Toshio Kuratomi 6d76cb40c5 Transform the command we pass to subprocess into a byte string in _low_level-exec_command 10 years ago
Toshio Kuratomi 6a0d2116b8 Delete new_inventory from stable-2.0 as it isn't used there.
leaving in devel for now as some people are planning on using it as
a starting place to update inventory in 2.1
10 years ago
Yannig Perré 1d18964daa Merge role params into variables separately from other variables
Fixes #13617
10 years ago
Brian Coca c605cd37f6 allow for non standard hostnames
* Changed parse_addresses to throw exceptions instead of passing None
* Switched callers to trap and pass through the original values.
* Added very verbose notice
* Look at deprecating this and possibly validate at plugin instead
fixes #13608
10 years ago
James Cammarata d512717cd2 Fix logic in PlayIterator when inserting tasks during rescue/always
Because the fail_state is potentially non-zero in these block sections,
the prior logic led to included tasks not being inserted at all.

Related issue: #13605
10 years ago
James Cammarata 9cfa2d7e28 Fixing bugs in conditional testing with until and some integration runner tweaks 10 years ago
Toshio Kuratomi ba0b4afb6b Revert "removed invocation info as it is not no_log aware"
This reverts commit 6127a8585e.
10 years ago
Toshio Kuratomi 76507bd567 Make return invocation information so that our sanitized copy will take precedence over what the executor knows. 10 years ago
Brian Coca 3840fb267c corrected service detection in docker versions
now if 1 == bash it falls back into tool detection
10 years ago
Toshio Kuratomi fbccfc8b61 Add package module to squash list 10 years ago
Toshio Kuratomi 2d179b376b Remove args from get_name() as we can't tell if any of the args are no_log 10 years ago
Toshio Kuratomi a0add9dda5 Comment to explain why we strip _ansible_notify specially 10 years ago
Brian Coca df08ba37fe removed invocation info as it is not no_log aware
This was added in 1.9 and 2.0 tried to copy, but since it cannot
obey no_log restrictions I commented it out. I did not remove as
it is still very useful for module invocation debugging.
10 years ago
Toshio Kuratomi 6dc42e376f update submodule refs 10 years ago
James Cammarata c9cf07e3b5 Fixing bugs with {changed,failed}_when and until with registered vars
* Saving of the registered variable was occuring after the tests for
  changed/failed_when.
* Each of the above fields and until were being post_validated too early,
  so variables which were not defined at that time were causing task
  failures.

Fixes #13591
10 years ago
Toshio Kuratomi 0a319a28f2 Update submodule for mysql_user fix 10 years ago
James Cammarata 17fe156016 Fixing a mistake from tweaking list stuff too much
Use the action only if the task name is not set
10 years ago
James Cammarata 5824a6d9bb Further tweaks to the output format of list tasks/tags 10 years ago
James Cammarata 59cac03d3b Make --list-tasks respect tags
Also makes the output closer to the appearance of v1

Fixes #13260
10 years ago
Toshio Kuratomi cc2e0c1e3d Update submodule to pull in mysqldump fix 10 years ago
Toshio Kuratomi 64737c80f9 Update submodule refs 10 years ago
James Cammarata 1f7ed5d8ee Fix handling of environment inheritence, and template each inherited env
Environments were not being templated individually, so a variable environment
value was causing the exception regarding dicts to be hit. Also, environments
as inherited were coming through with the tasks listed first, followed by the
parents, so they were being merged backwards. Reversing the list of environments
fixed this.
10 years ago
James Cammarata f41dd578b3 Make sure we're using the original host when processing include results
Also fixes a bug where we were passing an incorrect number of parameters to
_do_handler_run() when processing an include file in a handler task/block.

Fixes #13560
10 years ago
James Cammarata 407d76b8d5 Fixing template integration test for python 2.6 versions
No longer immediately fallback to to_json if simplejson is not installed
10 years ago
Toshio Kuratomi d2c43c421f Update core module ref for mysql_user fix 10 years ago
James Cammarata bf9f6ce09c All variables in complex args again
Also updates the CHANGELOG to note the slight change, where bare variables
in args are no longer allowed to be bare variables

Fixes #13518
10 years ago
Brian Coca 84a6b543a9 ensure additional args are a dict
They should already be templated before hitting this point?
otherwise the class needs the task variables passed into it.
relates to #13518 and  https://groups.google.com/forum/#!msg/ansible-project/esoBcphHwHs/Ghgi_M-MCQAJ
10 years ago
chouseknecht abec9331d8 Fixed documentation typos and bits that needed clarification. Fixed missing spaces in VALID_ACTIONS. 10 years ago
chouseknecht 1e605d727c Define and handle ignore_certs correctly. Preserve search term order. Tweak to Galaxy docsite. 10 years ago
chouseknecht 8bb598daa2 Updated ansible-galaxy man page. Removed -b option for import. 10 years ago
chouseknecht 21edd6a5ab Fix overloaded options. Show an error when no action given. Don't show a helpful list of commands and descriptions. 10 years ago
nitzmahone d5bdea0bab fix plugin loading for Windows modules
force plugin loader to only consider .py files, since that's the only place docs can live ATM...
10 years ago
Toshio Kuratomi cd1bdaa61d Update submodule refs for mysql refactor 10 years ago
Jonathan Mainguy 9f69b6b585 Add shared connection code for mysql modules 10 years ago
James Cammarata 82519ab2a6 Preserve the cumulative path for checking includes which have parents
Otherwise, each relative include path is checked on its own, rather
than in relation to the (possibly relative) path of its parent, meaning
includes multiple level deep may fail to find the correct (or any) file.

Fixes #13472
10 years ago
Toshio Kuratomi 5761c333a6 Update submodule ref to fix docs build 10 years ago
Toshio Kuratomi 72b852a814 Update submodule refs 10 years ago
Toshio Kuratomi 897569c1ca Conditionally create the CustomHTTPSConnection class only if we have the required baseclasses.
Fixes #11918
10 years ago
Toshio Kuratomi 8e2cb2abb2 Fixes for proxy on RHEL5 10 years ago
Toshio Kuratomi b8d9b106de First attempt to fix https certificate errors through a proxy with python-2.7.9+
Fixes #12549
10 years ago
Brian Coca 48fb0cdecb debug now validates its params
simplified var handling
made default message the same as in pre 2.0
fixes #13532
10 years ago
James Cammarata 28602cddb0 Use the original host rather than the serialized one when processing results
Fixes #13526
Fixes #13564
Fixes #13566
10 years ago
Yannig Perré 5011d63f7e Fix a part of python 3 tests (make tests-py3, see https://github.com/ansible/ansible/issues/13553 for more details). 10 years ago