Commit Graph
61 Commits
Author SHA1 Message Date
Matt DavisandGitHub 06cfa4fb43 Update Ansible release version to v2.18.17.post0. (#86993) 2026-05-18 21:15:37 +00:00
Matt DavisandGitHub 2633c638ae New release v2.18.17 (#86989) 2026-05-18 19:45:42 +00:00
Matt DavisandGitHub bb06cb1a78 Update Ansible release version to v2.18.17rc1.post0. (#86972) 2026-05-14 14:29:09 +00:00
Matt DavisandGitHub 2b4713e8cc New release v2.18.17rc1 (#86969) 2026-05-11 19:12:37 +00:00
Matt DavisandGitHub 9f83864ab6 Fix ansible-test remote aliases for new-style args (#86844) (#86848)
* Always include `name` when applying remote config defaults for Posix/Windows.

(cherry picked from commit 00b1f27d9c)
2026-05-07 12:28:16 -05:00
Matt DavisandGitHub 43bedee141 Update Ansible release version to v2.18.16.post0. (#86876) 2026-04-21 21:41:04 +00:00
Matt DavisandGitHub 3df7962396 New release v2.18.16 (#86871) 2026-04-21 11:48:52 +00:00
Matt DavisandGitHub e4d6db1193 Disable ansible-test azure cloud self-test (#86866) (#86867)
* Core CI service principal pool is broken, likely new global policy. This service is not used by core.

(cherry picked from commit 7678502c77)
2026-04-20 23:41:57 +00:00
Matt DavisandGitHub ad053ab0e6 Update Ansible release version to v2.18.16rc1.post0. (#86835) 2026-04-13 21:02:18 +00:00
Matt DavisandGitHub 5d08dea365 New release v2.18.16rc1 (#86830) 2026-04-13 12:50:45 -07:00
Matt DavisandGitHub e4186e68b9 Update Ansible release version to v2.18.14.post0. (#86588) 2026-02-24 00:02:37 +00:00
Matt DavisandGitHub 0888e17f43 New release v2.18.14 (#86583) 2026-02-23 22:49:04 +00:00
Matt DavisandGitHub 872f1067ef Update Ansible release version to v2.18.14rc1.post0. (#86568) 2026-02-17 19:17:02 +00:00
Matt DavisandGitHub 2100a0d171 New release v2.18.14rc1 (#86564) 2026-02-17 18:14:22 +00:00
Matt DavisandGitHub 44184dc066 Update Ansible release version to v2.18.13rc1.post0. (#86451) 2026-01-23 01:35:17 +00:00
Matt DavisandGitHub 1fd4d1d31f New release v2.18.13rc1 (#86448) 2026-01-23 01:02:33 +00:00
Matt DavisandGitHub 56a1402a7f Backport 2.19 broken conditional detection (#86442) (#86446)
(cherry picked from commit 4bc1bdd93d)
2026-01-22 16:16:15 -08:00
Matt DavisandGitHub 8e8cf05703 Update Ansible release version to v2.18.11.post0. (#86129) 2025-11-05 00:10:32 +00:00
Matt DavisandGitHub 932dc80fe9 New release v2.18.11 (#86124) 2025-11-04 15:26:58 -08:00
Matt DavisandGitHub cd998d39a8 Update Ansible release version to v2.18.11rc1.post0. (#86096) 2025-10-29 20:36:39 +00:00
Matt DavisandGitHub 3092110f92 New release v2.18.11rc1 (#86092) 2025-10-29 19:48:51 +00:00
Matt DavisandGitHub a7789fbe5a Update Ansible release version to v2.18.10rc1.post0. (#85924) 2025-09-29 23:12:25 +00:00
Matt DavisandGitHub be4b64393a New release v2.18.10rc1 (#85922) 2025-09-29 15:05:14 -07:00
Matt DavisandGitHub a6464a121f Update Ansible release version to v2.18.9.post0. (#85827) 2025-09-08 19:02:10 +00:00
Matt DavisandGitHub 8d40979fee Update Ansible release version to v2.18.9rc1.post0. (#85792) 2025-09-04 20:16:46 -07:00
Matt DavisandGitHub 2b98c02319 New release v2.18.9rc1 (#85790) 2025-09-02 17:17:22 -07:00
Matt DavisandGitHub bd3dc8a155 Update Ansible release version to v2.18.7.post0. (#85485) 2025-07-15 18:34:34 +00:00
Matt DavisandGitHub a7e2898705 New release v2.18.7 (#85483) 2025-07-15 10:46:32 -07:00
Matt DavisandGitHub f00c796b77 Update Ansible release version to v2.18.7rc1.post0. (#85458) 2025-07-09 00:03:51 +00:00
Matt DavisandGitHub 127cc357a4 New release v2.18.7rc1 (#85454) 2025-07-08 16:27:57 -07:00
Matt DavisandGitHub 8fd554d4fd Update Ansible release version to v2.18.6.post0. (#85179) 2025-05-19 18:05:04 +00:00
Matt DavisandGitHub 4c144e66e2 New release v2.18.6 (#85177) 2025-05-19 16:56:48 +00:00
Matt DavisandGitHub 026bb3b22e New release v2.18.6rc1 (#85144) 2025-05-12 18:17:00 +00:00
Matt DavisandGitHub cddcdb7f75 add fuzzy matching to package_data sanity (#85103) (#85136)
* add fuzzy matching to package_data sanity

* relaxes exact directory matches for license files to allow setuptools > 72 to pass

* sanity

(cherry picked from commit 7e00053a30)
2025-05-12 17:38:36 +00:00
Matt DavisandGitHub 93c3133c2d remove stale changelog entry (#84187)
* forward-port of a fix that was already included in 2.17.0 and backported to all supported stable branches
2024-10-29 09:42:45 -07:00
Matt DavisandGitHub 23f8639a4b [stable-2.18] Preserve _ansible_no_log from action result; fix include_vars to set properly (#84143) (#84179)
* fixes for CVE-2024-8775

* propagate truthy `_ansible_no_log` in action result (previously superseded by task-calculated value)
* always mask entire `include_vars` action result if any file loaded had a false `show_content` flag (previously used only the flag value from the last file loaded)

* update no_log tests for CVE-2024-8775
* include validation of _ansible_no_log preservation when set by actions
* replace static values with dynamic for increased robustness to logging/display/callback changes (but still using grep counts :( )

* changelog

* use ternary, coerce to bool explicitly
(cherry picked from commit c9ac477e53)
2024-10-29 09:38:41 -07:00
Matt DavisandGitHub 2db34fcf93 Update Ansible release version to v2.18.0b1.post0. (#84005) 2024-09-24 21:21:36 +00:00
Matt DavisandGitHub 0061f342d9 New release v2.18.0b1 (#84004) 2024-09-24 13:46:57 -07:00
7fed9b06e0 [stable-2.18] forward ports of unsafe persistence fixes (#83922)
* [stable-2.17] Unsafe persistence (#82779)

* Ensure that unsafe is more difficult to lose [stable-2.16] (#82293)

* Ensure that unsafe is more difficult to lose

* Add Task.untemplated_args, and switch assert over to use it
* Don't use re in first_found, switch to using native string methods
* If nested templating results in unsafe, just error, don't continue

* ci_complete

(cherry picked from commit 270b39f6ff)

* Fix various issues in unsafe_proxy (#82326)

- Use str/bytes directly instead of text_type/binary_type
- Fix AnsibleUnsafeBytes.__str__ implementation
- Fix AnsibleUnsafeBytes.__format__ return type
- Remove invalid methods from AnsibleUnsafeBytes (casefold, format, format_map)
- Use `chars` instead of `bytes` to match stdlib naming
- Remove commented out code

(cherry picked from commit 59aa0145d2)

* Additional Unsafe fixes (#82376)

* Allow older pickle protocols to pickle unsafe classes. Fixes #82356

* Address issues when iterating or getting single index from AnsibleUnsafeBytes. Fixes #82375

* clog frag

(cherry picked from commit afe3fc184f)

* [stable-2.16] Enable directly using `AnsibleUnsafeText` with Python `pathlib` (#82510)

* Enable directly using `AnsibleUnsafeText` with Python `pathlib`. Fixes #82414

(cherry picked from commit c6a652c081)

* Prevent failures due to unsafe plugin name (#82759)

(cherry picked from commit 56f31126ad)

* Address issues from merge conflicts

---------

Co-authored-by: Matt Clay <matt@mystile.com>
Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
(cherry picked from commit 9e622ddb67)

* rewrite illegal templated conditional in find test

---------

Co-authored-by: Matt Martz <matt@sivel.net>
2024-09-23 15:20:59 -07:00
Matt DavisandGitHub 24e5b0d4fc Add DaemonThreadPoolExecutor impl (#83880)
* Add DaemonThreadPoolExecutor impl
* Provide a simple parallel execution method with the ability to abandon timed-out operations that won't block threadpool/process shutdown, and without a dependency on /dev/shm (as multiprocessing Thread/Process pools have).
* Create module_utils/_internal to ensure that this is clearly not supported for public consumption.
2024-09-03 11:23:38 -07:00
Matt DavisandGitHub c6a391c8d8 fix delegate_to integration test (#83865)
* the test was previously passing erroneously due to the `timeout` elapsing in CI, and that the `failed` test does not encompass `unreachable`
2024-08-26 17:54:08 -07:00
Matt DavisandGitHub a301ae876e try disabling negative values win_reboot test (#83735)
* hoping to improve CI stability
2024-08-06 18:34:57 -07:00
889012e29e clean up ansible-connection (#82992)
* clean up ansible-connection stuff

* eliminate unnecessary usage of pty/termios
* always use default pickle protocol
* remove unnecessary wire hashing

Co-authored-by: Kate Case <this.is@katherineca.se>
2024-05-02 21:37:19 +00:00
Matt DavisandGitHub 4aa109897f default svn URL to 127.0.0.1 for subversion integration tests (#82551)
* default svn URL to 127.0.0.1 for subversion integration tests

* svn client gives up before trying IPv4 addresses when localhost->(::1,127.0.0.1) in dual-stack envs (eg podman, most real hosts)
* svn client also requires legacy CN match on cert
* IPv6 works, but setup playbook would need a bunch more templating exceptions to conditionally manage `[::1]`

* explain IPv4 defaults
2024-01-17 09:49:47 -08:00
Matt DavisandGitHub 3ea5304a57 add pep668 note to pip module docs (#82096) 2023-10-30 23:38:36 +00:00
Matt DavisandGitHub 40263992df remove args passthru on role runme tests that use grep (#82060)
* varying verbosity was masking some first-pass test failures
2023-10-23 17:37:50 +00:00
Matt DavisandGitHub d8484f0af7 Update default test container Python to 3.12 and support for PyLint 3.0.1 (#81953)
* temporary PyLint plugin to mask 3.12 finalizer noise

* ansible-test - Default to Python 3.12 for base/default

* ansible-test - Update pylint requirements

* ansible-test - Remove obsoleted changelog entry

* Add changelog fragment for pylint work-around
2023-10-11 13:04:22 -07:00
Matt DavisandGitHub c1343cc304 switch available_hosts to frozenset from list in ansible-inventory (#81870)
* major speedup large inventories, since it's consulted iteratively
2023-10-03 17:20:14 -04:00
Matt DavisandGitHub dd79c49a4d fix various Jinja plugin caching issues (#79781)
* fix various Jinja plugin caching issues

* consolidate the wrapper plugin cache
* remove redundant cache in J2 filter/test interceptor

* intra-template loader bypass

* fix early exits swallowing some exception detail

* misc comment cleanup
2023-09-05 13:32:36 -07:00
Matt DavisandGitHub 1c765a6afc restore conditional lookup nerfing (#81460)
* a recent optimization lost the unsafe lookup disable behavior when templating conditionals with inline templates that referred to untrusted values
* added regression test to catch this case
2023-08-09 09:25:20 -07:00
Matt DavisandGitHub 6a8c51bb9c fix redis cache setup (#81329)
* use https repo
* increase default download timeout of 10s for slow/lagged connections
2023-07-25 13:09:40 -07:00
Matt DavisandGitHub 9117762358 define code owners to support branch-protection rules on docs (#81041)
* during interim docs/ (and related dirs) split to separate repo, prevent merges that might require a rebase of the target repo
2023-06-12 11:16:40 -07:00
Matt DavisandGitHub 5e131a96c0 bump devel to 2.16.0.dev0 (#80390) 2023-04-03 15:26:32 -07:00
Matt DavisandGitHub e1d298ed61 don't ignore templated _raw_params that k=v parser failed to parse (#79913)
fixes #79862
2023-02-08 17:54:46 -06:00
Matt DavisandGitHub c7c991e79d quiet default ansible-doc integration test output (#79921)
* quiet default ansible-doc integration test output 

* typical non-verbose output was exceeding 27k lines per fun
* disables `set -x` unless `-v` is passed to the script (eg when ansible-test is called with `-v` or `--retry-on-error` adds it on the second try
* added simple progress echoes
* suppress some grep output

* only enable `set -x` for >= `-vvv`

* fix shellcheck default complaint
2023-02-07 16:20:57 +01:00
Matt DavisandGitHub 1424484be0 Prevent stdio deadlock in forked children (#79522)
* background threads writing to stdout/stderr can cause children to deadlock if a thread in the parent holds the internal lock on the BufferedWriter wrapper
* prevent writes to std handles during fork by monkeypatching stdout/stderr during display startup to require a mutex lock with fork(); this ensures no background threads can hold the lock during a fork operation
* add integration test that fails reliably on Linux without this fix
2022-12-05 20:46:15 -08:00
Matt DavisandGitHub 0591efd5e6 remove Templar caching (#78419)
* source of templating bugs (and at least one CVE), only applies to single-var values anyway
2022-08-03 15:26:37 -07:00
Matt DavisandGitHub 1368bfa348 PluginLoader now installs module-to-be-imported in sys.modules before exec (as Python import does). (#78364) 2022-07-27 14:55:50 -07:00
Matt DavisandGitHub 6e78425f8d fix pip module resolution (#78000)
* `importlib.util` appears to be lazily imported and is sometimes unavailable as an attribute of `importlib` without an explicit import
2022-06-08 09:56:17 -07:00
Matt DavisandGitHub 813afcbbb4 swallow all exceptions in type annotation support shim imports (#77860)
* swallow all exceptions in type annotation support shim imports

* add changelog
2022-05-25 14:41:06 -05:00
Matt DavisandGitHub d352f2ec21 core branch descriptions (#76152) 2022-05-05 14:49:12 -04:00