Commit Graph

53765 Commits

Author SHA1 Message Date
7e6527a78f New release v2.15.9rc1 (#82586) v2.15.9rc1 2024-01-22 13:00:25 -06:00
686fe806f8 Support action_plugin in plugin_routing_schema (#82562) (#82582)
now validation schema matches reality

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
Co-authored-by: s-hertel <19572925+s-hertel@users.noreply.github.com>
(cherry picked from commit b01f1f207c)
2024-01-22 09:59:36 -06:00
09879cbe14 Better errors for delegate_to (#82319) (#82341)
Handle empty result of templating
  Also skip work when we omit

(cherry picked from commit 6ebefaceb6)
2024-01-19 14:52:11 -08:00
74869eb052 ansible-config dedupe ini plugin entries (#82498)
added test for ini file integrity, also ensuring no dupes

(cherry picked from commit 6c2895fd88)
2024-01-19 14:17:36 -08:00
55f0080358 Fix broken docs RST reference. (#82286) (#82298)
(cherry picked from commit 479949aad2)
2024-01-18 17:48:30 -06:00
30fa4adcdf [ansible-galaxy] Remove role name conversion when the repo startswith 'ansible-role' (#82508) (#82533)
* Remove role name conversion based on whether the repo name starts with
ansible-role

This was added in 2.3 to match the Galaxy ui behavior of truncating the
'ansible-role-' prefix automatically, but the new backend requires an
alternate name to be provided or defined in the ``galaxy_info``
metadata.

Roles that were imported using the ansible-role-$name convention will
need to use ``--role-name`` or add ``role_name`` to the ``galaxy_info``
dictionary in ``meta/main.yml``.

changelog

* Update changelogs/fragments/fix-default-ansible-galaxy-role-import-name.yml

* Update changelogs/fragments/fix-default-ansible-galaxy-role-import-name.yml

Co-authored-by: flowerysong <junk+github@flowerysong.com>

---------

Co-authored-by: flowerysong <junk+github@flowerysong.com>
(cherry picked from commit d7be3824fe)
2024-01-18 17:42:12 -06:00
78db3a3de6 [stable-2.15] Ensure ANSIBLE_NO_LOG is respected (CVE-2024-0690) (#82565) (#82567)
(cherry picked from commit 6935c8e)
2024-01-18 17:41:46 -06:00
2477059be2 Targeted fix for installing roles with symlinks containing '..' (#82165) (#82324)
Set the tarfile attribute to a normalized value from unfrackpath instead
of validating path parts and omiting potentially invald parts

Allow tarfile paths/links containing '..', '$', '~' as long as the
normalized realpath is in the tarfile's role directory

(cherry picked from commit 3a42a00368)
2024-01-18 17:24:15 -06:00
0db4bb36ba Enable directly using AnsibleUnsafeText with Python pathlib (#82510) (#82563)
* Enable directly using `AnsibleUnsafeText` with Python `pathlib`. Fixes #82414.
(cherry picked from commit c6a652c081)
2024-01-18 14:31:30 -06:00
11e50715a3 [backport-2.15] CI: remove FreeBSD 12.4 from test matrix (#81315)
Fixes: #80417

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 11e261b54f)
2024-01-05 10:12:07 -08:00
b7a93e586c Update Ansible release version to v2.15.8.post0. (#82403) 2023-12-11 22:05:41 +00:00
ba1854271b New release v2.15.8 (#82400) v2.15.8 2023-12-11 14:48:45 -06:00
b19cfb19c2 [stable-2.15] Additional Unsafe fixes (#82376) (#82380)
* 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 afe3fc1)
2023-12-11 13:50:25 -06:00
a79e410c51 [backport-2.15] Replace FreeBSD 13.1 with 13.2 in CI and ansible-test (#82397)
* [backport-2.15] Add FreeBSD 13.2 to ansible-test (#80698)

(cherry picked from commit d12aa7f69c)

* [backport-2.15] remove Freebsd 13.1 from test matrix (#81058)

* remove Freebsd 13.1 from test matrix

fixes #80416

Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit 534f688a53)

* Revert to the original Python versions for the branch

Co-authored-by: Matt Martz <matt@sivel.net>

---------

Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
Co-authored-by: Matt Martz <matt@sivel.net>
2023-12-11 12:45:24 -06:00
0474d3da62 [backport][stable-2.15] 🧪 Replace GitHub SVN integration test with local TLS (#82369)
* [backport][stable-2.15] 🧪 Replace GitHub SVN integration test with local TLS

PR #82334

* Run svn integration test locally with TLS

This patch uses a `trustme` to make an ephemeral CA, and server, and
client TLS artifacts for testing. These are integrated into the Apache
web server via it's `mod_ssl`.

Resolves #82207

* Replace GitHub SVN HTTPS URL w/ localhost over TLS

This change gets rid of the need to use GitHub, which is just about to
drop support for SVN [[1]]. Moreover, it eliminates the need to use
external network for any SVN commands in the test.

[1]: https://github.blog/2023-01-20-sunsetting-subversion-support/

(cherry picked from commit dd0138ba21)

* Implement compat w/ opensuse15, centos7 & rhel7/8
2023-12-06 16:18:26 -06:00
320a39dc0f Update Ansible release version to v2.15.7.post0. (#82350) 2023-12-04 23:03:29 +00:00
e5fd1dae57 New release v2.15.7 (#82347) v2.15.7 2023-12-04 15:46:37 -06:00
4fc275aa1b Fix various issues in unsafe_proxy (#82326) (#82331)
- 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)

Co-authored-by: Matt Clay <matt@mystile.com>
2023-12-04 13:39:39 -06:00
3561008c7e [stable-2.15] Install upgraded crun from edge (#81833). (#82343)
(cherry picked from commit e78cc1e602)
2023-12-04 09:53:43 -08:00
24a8d040eb Update Ansible release version to v2.15.7rc1.post0. (#82305) 2023-11-27 22:08:17 +00:00
a1d85b9554 New release v2.15.7rc1 (#82302) v2.15.7rc1 2023-11-27 15:24:47 -06:00
fea130480d Ensure that unsafe is more difficult to lose [stable-2.15] (#82294)
* 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

(cherry picked from commit 586f1924512b01305f896d9ae4732773023013a3)

* ci_complete
2023-11-27 10:27:24 -08:00
03330f1431 flush_handlers: handle a failure in a nested block with force_handlers (#81572) (#82198)
Fixes #81532

ci_complete

(cherry picked from commit a8b6ef7e7c)
2023-11-27 10:28:56 -06:00
bade98dc8f add pep668 note to pip module docs (#82096) (#82099)
(cherry picked from commit 3ea5304a57)
2023-11-27 08:55:29 -06:00
7c31e6b1c0 [stable-2.15] Check if skeleton is /dev/null while creating home folder (#75948) (#82103)
* Check if skeleton is /dev/null while creating home folder

* Add test for linux



(cherry picked from commit 25b3d3a)

Co-authored-by: Holger Dörner <42909210+HolgerDoerner@users.noreply.github.com>
2023-11-27 08:55:17 -06:00
a62ba401be Remove duplicate winrm test (#82124) (#82126)
(cherry picked from commit f8a9fd4758)
2023-11-27 08:54:46 -06:00
412c6bc4f6 [bp-2.15] Fix the strategy plugin description in keywords (#82132)
Fixes: https://github.com/ansible/ansible-documentation/issues/762

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 8ecc1d485b)
2023-11-27 08:54:28 -06:00
fdbdc2ae35 restore role param precedence (#82106) (#82139)
* add test for setfact/param override

(cherry picked from commit 20a54eb236)
2023-11-27 08:54:09 -06:00
5623783bcf ansible-pull: expand destinantion directoy to avoid purgin in / (#82030) (#82222)
* expand destinantion directoy to avoid purgin in /

  bad things could happen and help alone is not enough

(cherry picked from commit 8825e60add)
2023-11-27 08:53:51 -06:00
23cd32e31e wait_for, fallback to read for non mmapable files (#82064) (#82234)
* wait_for, fallback to read for non mmapable files (#82064)

(cherry picked from commit 8b102dca4a)
2023-11-27 08:53:30 -06:00
5b5c26c644 no_log avoid masking booleans (#82217) (#82236)
* no_log avoid masking booleans (#82217)

(cherry picked from commit 6e448edc63)
2023-11-27 08:53:04 -06:00
6d746023a1 Update Ansible release version to v2.15.6.post0. (#82143) 2023-11-06 18:42:01 +00:00
36675bbe9f New release v2.15.6 (#82140) v2.15.6 2023-11-06 11:56:48 -06:00
e141a9092a Update Ansible release version to v2.15.6rc1.post0. (#82093) 2023-10-30 20:45:31 +00:00
357ba68b76 New release v2.15.6rc1 (#82092) v2.15.6rc1 2023-10-30 15:04:29 -05:00
0ef9984918 Restore import_role variable exporting behavior (#81840) (#81873)
* Import role public (#81772)

revert to previous behavior to push vars to play at compile time
add `public` parameter to allow per import control of exporting (vs just the global config)

Co-authored-by: tchernomax <maxime.deroucy@gmail.com>
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
(cherry picked from commit ab6a544e86)

* adapted to prev version

 - removed new functionality
 - restored global config functioning overriding specific public option

* remove typoe

* quote it

(cherry picked from commit 9a4bc7e7b3)
2023-10-26 15:12:03 -05:00
83c20fed99 switch available_hosts to frozenset from list in ansible-inventory (#81870) (#81876)
* major speedup large inventories, since it's consulted iteratively

(cherry picked from commit c1343cc304)
2023-10-26 15:11:34 -05:00
498cc00b4e Add test coverage for winrm (#81910) - 2.15 (#81913)
* Add test coverage for winrm (#81910)

(cherry picked from commit 282908c57e)

* Add more winrm coverage (#81923)

(cherry picked from commit 976067c15f)
2023-10-26 15:11:17 -05:00
3e2ce2d073 [stable-2.15] run_once: unnotify hosts on handlers that are not run (#81667) (#81919)
Fixes #81666
(cherry picked from commit 2d5861c)
2023-10-26 15:10:58 -05:00
a05d254ca2 [stable-2.15] Properly template tags in parent blocks (#81624) (#81922)
When templating tags (which happens outside of standard `post_validate`) we
need to template each object in the inheritance chain and set the templated
values on those objects individually. That way when `task.tags` is called the
`extend` functionality properly picks up the templated values of all
parents into one flatten list.

Fixes #81053
(cherry picked from commit 9b3ed5e)
2023-10-26 15:10:39 -05:00
1eb437e50d ansible-galaxy - fix traceback error for invalid req file (#81917) (#81925)
Provide a better error message when encountering a YAML requirements file that is not a dictionary or list.

Fixes: #81901
(cherry picked from commit 8a5ccc9d63)
2023-10-26 15:10:23 -05:00
8896db97ed Fix Jinja plugin deduplication (#82002) (#82054)
for j2 plugins dedupe on path and  not basename
for j2 this is a container file , for other plugins file name == plugin name

(cherry picked from commit b4566c18b3)
2023-10-26 15:09:58 -05:00
0c98b2256c [stable-2.15] ansible-test - Fix parsing of cgroup entries
(cherry picked from commit e933d9d8a6)

Co-authored-by: Matt Clay <matt@mystile.com>
2023-10-23 09:48:04 -07:00
9aeced838f [stable-2.15] Fix subversion integration test (#82029)
- Remove dependency on the htpasswd module (and thus passlib)
- Fix setup/teardown of the httpd process
- Fix cleanup of temporary directories.
(cherry picked from commit 09d943445c)

Co-authored-by: Matt Clay <matt@mystile.com>
2023-10-23 09:47:06 -07:00
40b9ed35ce ansible-test - Use Azure for Windows 2012/2012-R2 (#81971) 2023-10-13 16:26:30 -07:00
427248cbc9 Update Ansible release version to v2.15.5.post0. (#81936) 2023-10-09 16:33:13 +00:00
f1aab39d79 New release v2.15.5 (#81933) v2.15.5 2023-10-09 10:51:22 -05:00
92447debff win_fetch - improve test time by not scanning Win dir (#81884) (#81887)
(cherry picked from commit dfc62589f6)
2023-10-04 10:24:40 -07:00
faa96a23c3 Update Ansible release version to v2.15.5rc1.post0. (#81869) 2023-10-03 22:12:41 +00:00
0ddfdbde4e New release v2.15.5rc1 (#81863) v2.15.5rc1 2023-10-03 16:19:53 -04:00