summaryrefslogtreecommitdiff
path: root/changelogs
Commit message (Collapse)AuthorAgeFilesLines
* New release v2.12.8rc1 (#78471)v2.12.8rc1Christian Adams2022-08-083-0/+55
|
* Ensure atomic writes for cache file (#78208) (#78218)Brian Coca2022-08-031-0/+2
| | | | | | | * Ensure atomic writes for cache file helps avoid errors in highly concurrent environments (cherry picked from commit f6419a53f6e954e5fae8cd3102619dadb6938272)
* Decode vaulted args before sending over ansible-connection. (#78236) (#78247)Kate Case2022-08-031-0/+3
| | | | | | | I'm not aware of a way to easily get vault secrets decoded on the ansible-connection side without sending the vault secrets over the connection in the same way, so just decode them for transport. (cherry picked from commit fff14d7c1ddec30a8645a622f1742c927a18f059)
* [stable-2.12] Fix KeyError for ansible-galaxy when caching paginated ↵Matt Martz2022-08-031-0/+2
| | | | | | | | | | | | | | | | responses from v3 (#78325) (#78406) * Fix KeyError for ansible-galaxy when caching paginated responses from v3 * changelog * generate responses in loop for test Co-authored-by: Matt Martz <matt@sivel.net> (cherry picked from commit 5728d72) Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
* [stable-2.12] ansible-test - Fix handling of args after `--` (#78328)Matt Clay2022-07-271-0/+2
| | | | | | (cherry picked from commit 0012263c7acd971335d9f1c8a0ccc69b7e3325ee) Co-authored-by: Matt Clay <matt@mystile.com>
* [stable-2.12] ansible-test - Improve pip bootstrap download.Matt Clay2022-06-241-0/+3
| | | | | | (cherry picked from commit b9d13d222cfe4ebd9675d5bbf529e929daaded6f) Co-authored-by: Matt Clay <matt@mystile.com>
* New release v2.12.7 (#78085)v2.12.7Dimitri Savineau2022-06-203-3/+17
|
* New release v2.12.7rc1 (#78034)v2.12.7rc1Dimitri Savineau2022-06-133-0/+118
|
* [stable-2.12] ansible-test - Adjust unit test mock usage. (#78003)Matt Clay2022-06-091-0/+2
| | | | | | | | | * ansible-test - Prefer unittest.mock for core. (cherry picked from commit 81351022d8d1c0133b47af57f993f4e82f6c1a67) * ansible-test - Adjust unit test mock usage. (#77961) (cherry picked from commit 23914d3f0b5d69e7710c3744f373203c8caa6693)
* fix pip module resolution (#78000) (#78005)Matt Davis2022-06-091-0/+2
| | | | | * `importlib.util` appears to be lazily imported and is sometimes unavailable as an attribute of `importlib` without an explicit import (cherry picked from commit 6e78425f8d6edbfd95faf5c3c2c05c6d3f038758)
* [stable-2.12] Make fuzzy plugin matching deterministic. (#77998)Matt Clay2022-06-081-0/+2
| | | | | (cherry picked from commit 5a0b230e240664ea4b316fe1592ce84003c9946c) Co-authored-by: Matt Clay <matt@mystile.com>
* Add toggle to fix module_defaults with module-as-redirected-action on a ↵Sloane Hertel2022-06-081-0/+55
| | | | | | | | | | | | | per-module basis (#77265) (#77900) * If there is a platform specific handler, prefer the resolved module over the resolved action when loading module_defaults Add a toggle for action plugins to prefer the resolved module when loading module_defaults Allow moving away from modules intercepted as actions pattern Fixes #77059 (cherry picked from commit 621e782ed0c119d2c84124d006fdf253c082449a)
* New release v2.12.6 (#77864)v2.12.6jamesmarshall242022-05-233-3/+17
|
* New release v2.12.6rc1 (#77810)v2.12.6rc1Dimitri Savineau2022-05-163-0/+44
|
* dont rely on path to set config defs for plugins (#77659) (#77695)Brian Coca2022-05-101-0/+2
| | | (cherry picked from commit a3cc6a581ef191faf1c9ec102d1c116c4c2a8778)
* [stable-2.12] arg_spec - Return aliases in validation result and update ↵Sam Doran2022-05-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | aliases (#77576) (#77602) * [stable-2.12] arg_spec - Return aliases in validation result and update aliases (#77576) When looking up the `no_log` setting for a parameter that is an alias in `AnsibleModule._log_invocation()`, the alias value will always be an empty dictionary since `self.aliases` on the `AnsibleModule` instance is never updated after initialization. Since the `no_log` setting is on the canonical parameter not the alias, an incorrect warning is issued if the parameter matches `PASSWORD_MATCH`. This PR returns the aliases dictionary as an attribute of the `ValidationResult` and updates the `aliases` attribute on the `AnsibleModule` instance. (cherry picked from commit 1b947eaf92) Co-authored-by: Sam Doran <github@samdoran.com> * Rewrite test comprehension for Python 2.6 * No need for list inside the dict constructor
* Prevent losing unsafe from lookups (#77609) (#77651)Martin Krizek2022-05-091-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes a bug which under certain conditions results in data returned from lookups not being marked as unsafe. Each time Templar.do_template is invoked a new AnsibleContext is created and stored effectively at two places: 1) as an instance variable in templar_obj.cur_context 2) as a local variable called new_context in do_template method of Templar Due to custom functionality in Ansible's Context that allows for nested templating it is possible that during resolving variable's value template/do_template method is called recursively again, again creating a new context. At that point the problem manifests itself because as mentioned in 1) above the context is overwriten on the templar object which means that any subsequent calls to _lookup will use the new context to mark it as unsafe which is now different to the local new_context which is used for testing for unsafe property. The solution to the problem appears to be to restore the original context inside do_template and also to eliminate the local variable new_context to prevent problems in the future. It appears that we don't have a better way of storing the context other than as some form of global variable and so this appears to be the "best" solution possible at this point. Hopefully data tagging will be the solution here. For more examples see unit and integration tests included in this patch. Fixes #77535 (cherry picked from commit 3980eb8c09d170a861351f8aff4a1aa1a8cbb626)
* varaiblemanager, more efficienet vars file reads (#77570) (#77595)Brian Coca2022-05-091-0/+2
| | | (cherry picked from commit 2c2a204dc66e0822003c9f2ea559bb1b2034b7e4)
* New release v2.12.5 (#77628)v2.12.5Christian Adams2022-04-253-3/+17
|
* New release v2.12.5rc1 (#77543)v2.12.5rc1jamesmarshall242022-04-183-0/+66
|
* SID - Use literal UPN value when attempting a user to SID lookup (#77334) ↵Jordan Borean2022-04-131-0/+2
| | | | | (#77348) (cherry picked from commit ff184b0815cdbf7dc222fd9d7b0cfaa93d5fe03c)
* [2.12] fix shell/command/script tasks skipping in check mode (#76353) (#77389)Sloane Hertel2022-04-131-0/+3
| | | | | | | | | | | * fix shell/command/script tasks skipping in check mode (#76353) * fix shell/command/script tasks skipping in check mode * changelog (cherry picked from commit de11a1ce781482e280c55d99ce571a130ae474bc) * Add portion of tests from #76429 for skipping/not skipping shell/command tasks in check mode
* winrm - ensure callers PATH for kinit is set (#77401) (#77403)Jordan Borean2022-04-131-0/+2
| | | | | | | | | * winrm - ensure callers PATH for kinit is set * Fix unit test expectations * Fix type annotation (cherry picked from commit 60b4200bc6fee69384da990bb7884f58577fc724)
* [bp-2.12] hostname - fix TypeError in FileStrategy (#77365)Abhijeet Kasurde2022-04-131-0/+2
| | | | | | | | | | * Use file_get_content() to read the file containing the host name (cherry picked from commit d60efd97687803fd184ac53aa691bd4e0ec43170) Signed-off-by: Emmanuel Benoît <tseeker@nocternity.net> Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> Co-authored-by: Emmanuel Benoît <tseeker@nocternity.net>
* Get git executable for collections in git repos (#77493) (#77501)Sloane Hertel2022-04-131-0/+2
| | | | | * Fix traceback installing collections from git repos if git is not installed (cherry picked from commit 477c55b0d231dcb62cfcec21fe93a8fee95b4215)
* [stable-2.12] Fix sanity test crash.Felix Fontein2022-04-111-0/+2
| | | | | | (cherry picked from commit 6216c9fc93cb29283f6eb6d15561762eeb2c7b2e) Co-authored-by: Felix Fontein <felix@fontein.de>
* [stable-2.12] ansible-test - Fix origin host target filtering.Matt Clay2022-03-301-0/+5
| | | | | | (cherry picked from commit 4b51e61645da35861b872a8d1033965792255092) Co-authored-by: Matt Clay <matt@mystile.com>
* New release v2.12.4 (#77374)v2.12.4jamesmarshall242022-03-283-3/+17
|
* New release v2.12.4rc1 (#77329)v2.12.4rc1jamesmarshall242022-03-213-0/+63
|
* unarchive: fix io_buffer_size option, remove ignore.txt entry (#77271) (#77311)Felix Fontein2022-03-181-0/+2
| | | | | | | | | | | * Fix io_buffer_size option. * Remove ignore.txt entry by adding action plugin only options to module's argument spec. * Add changelog fragment. * Adjust unit tests. (cherry picked from commit e3c72230cda45798b4d9bd98c7f296d2895c4027)
* 2.12: Add YAML representers for NativeJinjaUnsafeText and NativeJinjaText ↵Martin Krizek2022-03-182-0/+4
| | | | | | | | | | | | | (#77299) * Add a YAML representer for NativeJinjaUnsafeText (#76186) (cherry picked from commit dd220ddc2faf9510bdfedacf8b755798038591d9) * Add a YAML representer for NativeJinjaText (#77282) Fixes #77280 (cherry picked from commit c9db73f04e7a5fae7bbbdff8efbd585d15971d31)
* [2.12 backport] use same timeout for galaxy api interactions (backport of ↵Elijah DeLee2022-03-151-0/+2
| | | | | | | | | | | | | | | | | | | | | #77088) (#77142) * use same timeout for galaxy api interactions (#77088) Also, bump the default. A number of people have reported problems with this 20 second timeout for a couple of years on https://github.com/ansible/galaxy/issues/2302 It is mentioned in the issue that resolving dns can sometimes take up to 30 seconds, and that this timeout includes dns resolution. Includes a changelog message * fix type hint Co-authored-by: Matt Clay <matt@mystile.com> Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com> Co-authored-by: Matt Clay <matt@mystile.com>
* [2.12] Fix collection redirects for filter and test plugins (#77210) (#77227)Sloane Hertel2022-03-151-0/+2
| | | | | | | | | | | | * Fix collection redirects for filter and test plugins (#77210) * Fix collection redirects for jinja2 filters/tests * Handle recursive redirects Co-authored-by: Matt Martz <matt@sivel.net> (cherry picked from commit 8063643b4cec51a72377da5f3fa354d3ff9e737a) * The error message is only capitalized on 2.13. Make test more flexible.
* first_found: allow spaces in names (#77141) (#77207)Martin Krizek2022-03-151-0/+2
| | | | | | | * first_found: allow spaces in names Fixes #77136 (cherry picked from commit 74a204e6f144f3eabd6384bbb665b6afd69117c3)
* [2.12] ansible-galaxy collection verify - display new files/dirs as ↵Sloane Hertel2022-03-151-0/+2
| | | | | | | | | | | modified content (#77128) * Fix 'ansible-galaxy collection verify' to report files/directories not listed in the FILES.json (cherry picked from commit a1d467dbb21e00cdb0ed38baf0e43e583185dc59) * changelog (cherry picked from commit 3d49d6f69ec1afa2234a21a1f9cd273d55cb6597)
* [stable-2.12] Use full python package for ansiballz cache filenames (#77090) ↵Matt Martz2022-03-151-0/+5
| | | | | | | | | | (#77125) * Use full python package for ansiballz cache filenames * Be a little more explicit about test goals (cherry picked from commit 8cbe143) Co-authored-by: Matt Martz <matt@sivel.net>
* [stable-2.12] ansible-test - Fix delegation inventory path.Matt Clay2022-03-101-0/+2
| | | | | | (cherry picked from commit e8afdac06e3cdbb52885ec15660ea265e62d63ab) Co-authored-by: Matt Clay <matt@mystile.com>
* New release v2.12.3 (#77158)v2.12.3Christian Adams2022-02-283-3/+17
|
* New release v2.12.3rc1 (#77124)v2.12.3rc1Christian Adams2022-02-233-0/+153
| | | Signed-off-by: Christian M. Adams <chadams@redhat.com>
* ansible-test - Update default containers to 4.2.0.Matt Clay2022-02-221-0/+2
|
* [stable-2.12] ansible-test - Fix CParser import in yamllint.Matt Clay2022-02-221-0/+2
| | | | | | (cherry picked from commit d286c2e8b35d8324f0a1d1b9843b0501712ec9e3) Co-authored-by: Matt Clay <matt@mystile.com>
* [stable-2.12] ansible-test - Managed venv fixes. (#77100)Matt Clay2022-02-223-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ansible-test - Remove cap on cryptography version. (cherry picked from commit 00a2b7788e0ef7067dc58c9a13659376e38cd352) * ansible-test - Fix consistency of managed venvs. (#77028) (cherry picked from commit 68fb3bf90efa3a722ba5ab7d66b1b22adc73198c) * Avoid system-site-packages in AZP coverage venvs. The use of `--venv-system-site-packages` was an optimization to use the `coverage` package pre-installed in the AZP test container. However, now that the venv is bootstrapped by ansible-test that optimization no longer makes sense, since other downloads are already taking place. (cherry picked from commit 177336a9d33a395cf77098a65f59e0fc449ecaad) * ansible-test - Clean up venv code. (cherry picked from commit addb9baec20fcede2a2494069c01c73b3d2e4fc9) * Adjust virtualenv version for Python 2.6. * Adjust bootstrap URL to work with Python 2.6. * Enable PyPI proxy for generic tests. This is needed to support ansible-test integration tests on Python 2.6. * Freeze plugin import sanity test requirements. Based on https://github.com/ansible/ansible/pull/76308
* [stable-2.12] ansible-test - Use quay.io containers in plugins.Matt Clay2022-02-171-0/+3
| | | | | | (cherry picked from commit c27fd777f4d82fc1eefaa20114cf1f76b7ce1bee) Co-authored-by: Matt Clay <matt@mystile.com>
* gather_facts sees collection networking connection (#76954) (#76963)Brian Coca2022-02-161-0/+2
| | | | | | needed to properly propagate some arguments by convention: subset, filter Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> (cherry picked from commit 5bddecb048aae0a7fc84e38e086ac90445c4edb4)
* ssh connection: use 'correct' host in all cases (#76017) (#76968)Brian Coca2022-02-161-0/+2
| | | | | | | | | ssh plugin, use 'correct' information source in all cases * still fallback to pc * added inventory to new test * undef var can still show as parser error on pc now task_exectuer has a more accurate error handling (cherry picked from commit be19863e44cc6b78706147b25489a73d7c8fbcb5)
* ansible-test - No pyopenssl in sanity test venvs.Matt Clay2022-02-161-1/+1
|
* fix block var inheritance (#75287) (#76896)Brian Coca2022-02-161-0/+2
| | | | | | | * updated tests to conform to new block inheritance Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com> Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> (cherry picked from commit b1d6750e8bbdf507a4af24a4319b78b7287e233c)
* [stable-2.12] unarchive: fix non-english locales (#76542) (#76933)Matt Martz2022-02-161-0/+2
| | | | | | | | | | | | | | * unarchive: fix non-english locales For GNU Gettext, the LANGUAGE environment variable takes precedence over LANG or LC_ALL. On systems where LANGUAGE was set to a non-english locale, the output of the tar command therefore not understood and the module failed silently ("changed": false, but the archive was not extracted). * add tests * changelog (cherry picked from commit 49e1cb9) Co-authored-by: Jonathan Neuhauser <jonathan.hofinger@gmx.de> Co-authored-by: Jonathan Neuhauser <jonathan.hofinger@gmx.de>
* clean_facts only show variable name (#76974) (#76984)Brian Coca2022-02-161-0/+2
| | | (cherry picked from commit 47faa6e206ccd697b4050062147a5d3242435597)
* Fix final fact delegation (#77008) (#77017)Brian Coca2022-02-161-0/+2
| | | | | | | | | | | * fix facts delegation loop overwrite partial revert of change to allow facts to be present in each loop iteration was not needed in final results as result processing alreayd had the disctiontion and ended up breaking the assumptions in the calling code. fixes #76676 (cherry picked from commit c9d3518d2f3812787e1627806b5fa93f8fae48a6)