Commit Graph

17693 Commits (fd64e5958df529bb71f5b769d64f5b0f5223dff2)
 

Author SHA1 Message Date
James Cammarata fd64e5958d Fixing bugs related to nested blocks inside roles
* Make sure dep chains are checked recursively for nested blocks
* Fixing iterator is_failed() check to make sure we're not in a
  rescue block before returning True
* Use is_failed() to test whether a host should be added to the TQM
  failed_hosts list
* Use is_failed() when compiling the list of hosts left to iterate
  over in both the linear and free strategies

Fixes #14222
10 years ago
Brian Coca a22c353022 properly combine vars if merge is set
hash_behaviour = merge now also applies to include vars
10 years ago
Brian Coca d743709c1a switched from threading to multiprocessing
functions same, just keeping names from confusing people
10 years ago
Brian Coca fa3f5c1de9 moved to base class for shell plugins
fish now sets env vars correctly
fish checksum now works
fixed and cleaned up imports
fixed typo
10 years ago
Toshio Kuratomi d25d06b0f4 Need to apply to_str to each element of the list so that we don't mix types in the join()
"Third time's the charm"
10 years ago
Brian Coca 1b88366905 really only want to prevent None typep here
false is sometimes needed
10 years ago
James Cammarata 0924a668e1 Handle run_once scenarios in the free strategy
* Raise an error if the action is using BYPASS_HOST_LOOP, to prevent
  unexpected behavior from those actions
* Show a warning regarding tasks marked as run_once, as the free strategy
  does not yet support that behavior
* Minor tweak to linear strategies run_once code to make sure we don't
  raise an error if an action isn't found
10 years ago
James Cammarata 2248b882c1 Make sure run_once tasks also set any_errors_fatal so all hosts fail
Currently implemented only in the linear strategy (free strategy simply
ignores run_once/BYPASS_HOST_LOOP actions).

Fixes #14252
10 years ago
James Cammarata 94afe2f0de Fix for copy test as ansible_ssh_user is not set by default now 10 years ago
Brian Coca 83a08b2a64 avoid errors from possible None/False args 10 years ago
James Cammarata 7fd9c4998d Fix the way we re-add variables from PlayContext to the variable dict
* If the internal value is None, do not add the variable
* Make sure all aliases for a given variable name are set (if they're
  not already set in the dictionary)

Fixes #14310
10 years ago
James Cammarata 0807368c79 Fixing bugs in play iteration and strategies
* Fixed a bug in PlayIterator when ITERATING_ALWAYS, where the block
  was advanced but the incorrect data structure elements were cleared
* Cleaned up the logic of is_failed() in PlayIterator
* Fixed a bug in the free strategy which had not been updated to use
  the base strategy _execute_meta() method
* Stopped strategies from using is_failed() to determine if tasks should
  still be fetched for a host

Fixes #14040
10 years ago
James Cammarata 50001f15c0 Removing .out file for integration tests and adding to .gitignore 10 years ago
James Cammarata bcf0551b72 Adding .retry files to .gitignore 10 years ago
Tobias Wolf c769846ba9 Do not print empty diffs with _display.display() 10 years ago
Tobias Wolf fd769c402e Do not insert newlines when diff is empty 10 years ago
Tobias Wolf dd98f5c6cc Fix handling of difflist containing multiple before/after pairs
Commit ansible/ansible@c337293 introduced a difflist feature. The return
value was not adequately outdented to append any diff after the first.
10 years ago
Brian Coca e5b5b78d3c hide internal params once used 10 years ago
Paul Calabro 233f4fc455 Adding a hyphen in the perms pattern section, since doing something like
go=- is a quick way to strip all permissions for non-owners.
10 years ago
Matthew Jones 94e7cde34e Add rax cache age ini documentation 10 years ago
Matthew Jones f08dc0e95f Add a config option for rackspace inventory cache
Adding a config and environment variable option for tuning the cache age
check in the rackspace inventory module
10 years ago
Brian Coca 21ed250623 better init detection 10 years ago
Dan Langille ff53d588e7 Specify the correct default values for sudo_flags
The correct default options for sudo_flags can be found at: https://github.com/ansible/ansible/blob/devel/lib/ansible/constants.py#L181

Slightly alter explanation of '-H' so as not to confuse it with -E, --preserve-env (which preserves existing environment variables).

When adding the two other options, include short explanations of those options.

Add note about '-n', which did not appear in 1.x I believe, and which bit me.
10 years ago
Dan Langille b5d4726cae Add correct default options for sudo_flags
see https://github.com/ansible/ansible/blob/devel/lib/ansible/constants.py#L181
10 years ago
James Cammarata bb6cadefa2 New release v2.0.1.0-1 10 years ago
James Cammarata 023d79c19e Updating RELEASES.txt 10 years ago
Brian Coca 67fd16c0da show task path on vv or above 10 years ago
Matt Martz 307c1a5cb1 Catch TypeError on join, and if caught just return a single item, or a list of many 10 years ago
James Cammarata bec698052f New release v2.0.1.0-0.2.rc2 10 years ago
Brian Coca 729dbe7e67 removed follow from common file docs 10 years ago
Toshio Kuratomi 032d917e68 Update changelog for dnf fix 10 years ago
Toshio Kuratomi 9ecdec0141 Update submodule refs 10 years ago
James Cammarata 028c710380 Fix bugs related to task_includes and dep chain inheritance
* Fix the way task_include fields were created and copied
* Have blocks get_dep_chain() look at task_include's blocks for proper
  dep chain inheritance
* Fix the way task_include fields are copied to prevent a recursive
  degradation

Fixes #14460
10 years ago
James Cammarata 8ee8872d6b Fixing bugs related to nested blocks inside roles
* Make sure dep chains are checked recursively for nested blocks
* Fixing iterator is_failed() check to make sure we're not in a
  rescue block before returning True
* Use is_failed() to test whether a host should be added to the TQM
  failed_hosts list
* Use is_failed() when compiling the list of hosts left to iterate
  over in both the linear and free strategies

Fixes #14222
10 years ago
Marc Poirier caf1537510 Display the string which is causing an exception to be raised.
In the ansible template module, when there is an error while
expanding a templated string, displaying the string causing the
exception is very useful.
10 years ago
Brian Coca 6f54b1ae2b removed signal trapping 10 years ago
nitzmahone f77690e652 update extras submodule ref
for ec2_vpc_net_facts and elasticsearch module updates
10 years ago
Toshio Kuratomi 5336a51a9e Update submodule for fix to mysql_user password 10 years ago
Toshio Kuratomi 9c049b757f Revert "Module params should default to str in most cases."
This reverts commit 9fae8501e2.

Reverting for 2.0.1 -- this has been broken in the 2.0 tree for long
enough that some modules are relying on the broken behaviour.  This fix
will definitely return for 2.1.0 and may return in 2.0.2 (impact needs
to be evaluated).
10 years ago
Brian Coca 0ccbbe0c09 allow skipping tasks due to undefined var
mimic 1.x behaviour but give out big deprecation message, not only
for missing attribute but any undefined error.
10 years ago
Brian Coca 43bbd4b6dc termination handling
- moved to base cli class to handle centrally and duplicate less code
- now avoids duplication and reiteration of signal handler by reassigning it
- left note on how to do non-graceful in case we add in future
  as I won't remember everything i did here and don't want to 'relearn' it.
10 years ago
Brian Coca 517eec8c49 fix cartesian lookup
it seems that this was not working in 1.9 but we swallowed up the error
fixes #14437
10 years ago
nitzmahone b85d9acc09 update core submodule ref 10 years ago
Toshio Kuratomi ba5a3f2f67 Update submodule ref 10 years ago
Robin Roth eafc46512d fix typo 10 years ago
Robin Roth 39a53c5623 add ismount function from python Lib/posixpath.py
needed for https://github.com/ansible/ansible-modules-core/pull/2737
10 years ago
Toshio Kuratomi 9fae8501e2 Module params should default to str in most cases. 10 years ago
Brian Coca 724761d2a1 read full file when doing diff
but avoid reading file at all or full file when file is too big for diffing
10 years ago
Toshio Kuratomi 3e2b2b359c Clarify error message when module replacer encounters a bad import line for module_utils code 10 years ago
James Cammarata 5ebd5c548c Catch exceptions during module execution so they don't fail the worker
Fixes #14120
10 years ago