| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
* added versions to dep notices
* pep7
* string
|
| |
|
|
|
|
|
|
|
|
| |
removed bare vars
now environment inheritance correclty prepends
this allows more local to override more general
fixes #23180
|
|
|
|
|
|
|
|
| |
* Update module_utils.six to latest
We've been held back on the version of six we could use on the module
side to 1.4.x because of python-2.4 compatibility. Now that our minimum
is Python-2.6, we can update to the latest version of six in
module_utils and get rid of the second copy in lib/ansible/compat.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- centralized skipping
- also fixed module name broken by previous refactor
- let action modules handle async processing
- moved async into base action class's module exec
- action plugins can now run final action as async
- actually skip copy if base skips
- fixed normal for new paths
- ensure internal stat is never async
- default poll to 10 as per docs
- added hint for callback fix on poll
- restructured late tmp, now a pipeline query
- moving action handler to connection as networking does
- fixed network assumption invocation is always passed
- centralized key cleanup, normalized internal var
- _supress_tmpdir_delete now in _ansible_xxx and gets removed from results
- delay internal key removal till after we use em
- nicer tmp removing, using existing methods
- moved cleanup tmp flag to mking tmp func
|
| |
|
|
|
|
|
|
|
| |
Just a small cleanup for the existing occurrences.
Using the in-operator for hash lookups is faster than using .keys()
http://stackoverflow.com/questions/29314269/why-do-key-in-dict-and-key-in-dict-keys-have-the-same-output
|
|
|
|
| |
Fixes #18483
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When loading an include statically, we previously were simply doing a
copy() of the TaskInclude object, which recurses up the parents creating
a new lineage of objects. This caused problems when used inside load_list_of_blocks
as the new parent Block of the new TaskInclude was not actually in the list
of blocks being operated on. In most circumstances, this did not cause a
problem as the new parent block was a proper copy, however when used in
combination with PlaybookInclude (which copies conditionals to the list of
blocks loaded) this untracked parent was not being properly updated, leading
to tasks being run improperly.
Fixes #18206
|
|
|
|
| |
Fixes #17686
|
|
|
| |
https://docs.ansible.com/ansible/porting_guide_2.0.html#deprecated
|
|
|
| |
https://docs.ansible.com/ansible/porting_guide_2.0.html#deprecated
|
|
|
|
|
|
|
|
| |
(#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.
|
| |
|
|
|
|
|
|
| |
* adds squashing to objects, which allows them to be squashed down
to a final "view" before post_validate to avoid expensive evaluations
of parent attributes
|
| |
|
|
|
|
|
|
|
|
|
| |
* when including statically, make sure that all parents were also included
statically (issue #16990)
* properly resolve nested static include paths
* print a message when a file is statically included
Fixes #16990
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fixed lookup search path
added ansible_search_path var that contains the proper list and in order
removed roledir var which was only used by first_found, rest used role_path
added needle function for lookups that mirrors the action plugin one, now
both types of plugins use same pathing.
* added missing os import
* renamed as per feedback
* fixed missing rename in first_found
* also fixed first_found
* fixed import to match new error class
* fixed getattr ref
|
|
|
|
| |
Fixes #16542
|
| |
|
|
|
|
|
|
|
|
| |
In the case of using YAML anchors/aliases, YAML actually uses references
to the duplicated object so any modifications to the original impacts
later uses of the object.
Fixes #13575
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Due to the fact that roles may be instantiated with different sets of
params (multiple inclusions of the same role or via role dependencies),
simply tracking notified handlers by name does not work. This patch
changes the way we track handler notifications by using the handler
object itself instead of just the name, allowing for multiple internal
instances. Normally this would be bad, but we also modify the way we
search for handlers by first looking at the notifying tasks dependency
chain (ensuring that roles find their own handlers first) and then at
the main list of handlers, using the first match it finds.
This patch also modifies the way we setup the internal list of handlers,
which should allow us to correctly identify if a notified handler exists
more easily.
Fixes #15084
|
|
|
|
|
|
| |
This reverts commit 7ba790bbaf5059fb5a858227b7b1e5f852a1a288.
Fixes #15700
|
|
|
|
|
|
|
|
| |
Prior to this patch, the retry/until logic would fail any task that
succeeded if it took all of the alloted retries to succeed. This patch
reworks the retry/until logic to make things more simple and clear.
Fixes #15697
|
|
|
|
|
|
|
| |
Required for include+with* tasks which may include files that also
have tasks containing a with* loop.
Fixes #12736
|
|
|
|
| |
This reverts commit 4e528e9535732b7541155b323cdab2377d74cc3a.
|
| |
|
|
|
|
|
| |
this brings them to equivalence with when:
fixes #13905
|
|
|
|
| |
fixes #14790
|
| |
|
|
|
|
| |
Signed-off-by: 夏恺(Xia Kai) <xiaket@xiaket@gmail.com>
|
|
|
|
|
|
|
| |
it was assumed it could only be a dict or string (it starts out as a list)
also a 2nd assumption that bare vars only would appear in one of the dict keys.
removed deprecation warnings from here as they should be signaled in the bare conversion itself.
|
|
|
|
| |
Fixes #14100
|
|
|
|
| |
This reverts commit 1b46a422aa52a90c9dd7b168be1fed9c4273b6b2.
|
|
|
|
|
|
|
| |
Corrects inheritence of the boolean value, which needs some special
consideration from other (string/int) values.
Fixes #13872
|
|
|
|
|
|
| |
Also adds that flag to blocks.
Fixes #13744
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
| |
This reverts commit 87969868d42cd8aba1c65c8207d059d73407373b.
found better way to do it
|
|
|
|
|
|
|
|
|
| |
moved from the field attribute declaration and created a placeholder
which then is resolved in the field attribute class.
this is to avoid unwanted persistent of the defaults across objects which introduces
stealth bugs when multiple objects of the same kind are used in succession while
not overriding the default values.
|
| |
|
| |
|
|
|
|
| |
'flush_handlers')
|
| |
|