Commit Graph

53801 Commits (65ddf9d2759174ecec2bbeebbc34f699310c5c0c)
 

Author SHA1 Message Date
Matt Martz 65ddf9d275
Update Ansible release version to v2.15.12rc1.post0. (#83244) 7 months ago
Matt Martz c72ab567cd
New release v2.15.12rc1 (#83240) 7 months ago
Jordan Borean 3f01fd9be9
Add version ceiling for pypsrp (#83122) (#83162)
* Add version ceiling for pypsrp

Add a version ceiling for the pypsrp requirements. This ensures that the
future v1.0.0 release won't impact existing users who install the
library using the version range specified.

* Use constraints file

* Add changelog for this change

(cherry picked from commit 2ed6c30929)
7 months ago
Matt Clay d65905f998
[stable-2.15] ansible-test - Use PyPI proxy for centos7 (#83226) (#83228)
(cherry picked from commit c0f7e9cc2c)
7 months ago
Abhijeet Kasurde 2e32adac3f
[stable-2.15] facts: Add a generic detection for VMware product name (#83109)
* Use startswith instead of hardcoded values in VMWare product
  detction

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
7 months ago
Sloane Hertel 6fe3b64990
Fix installing roles containing symlinks (#82911) (#83138)
* Fix installing roles containing symlinks

Fix sanitizing tarfile symlinks relative to the link directory instead of the archive

For example:

role
├── handlers
│   └── utils.yml -> ../tasks/utils/suite.yml

The link ../tasks/utils/suite.yml will resolve to a path outside of the link's directory, but within the role

role/handlers/../tasks/utils/suite.yml

the resolved path relative to the role is tasks/utils/suite.yml, but if the symlink is set to that value, tarfile would extract it from role/handlers/tasks/utils/suite.yml

* Replace overly forgiving test case with tests for a symlink in a subdirectory of the archive and a symlink in the archive dir when these are not equivalent.

* Build test case from role files to make it easier to add test cases

Fixes #82702
Fixes #81965
Fixes #82051

(cherry picked from commit e84240db84)
7 months ago
Abhijeet Kasurde 04e6c51445
[stable-2.15] uri: update docs for follow_redirects (#83178)
* [stable-2.15] uri: update docs for follow_redirects

* Updated the docs for the parameter follow_redirects

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit fcc6d0bd0c)

* CI fixes

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>

---------

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
7 months ago
Matt Martz 4403519afe
[stable-2.15] Don't hardcode the dnf module, dynamically select one (#83183). (#83186)
(cherry picked from commit dc6b77beca)
7 months ago
Matt Martz 42baf82a73
Update Ansible release version to v2.15.11.post0. (#83121) 7 months ago
Matt Martz 8d26bde9cb
New release v2.15.11 (#83118) 7 months ago
Matt Davis 0304949246
Update Ansible release version to v2.15.11rc1.post0. (#83066) 8 months ago
Matt Davis c91ece9edf
New release v2.15.11rc1 (#83063) 8 months ago
Matt Clay 95074d4099 [stable-2.15] Update sdist path in release tool
The latest setuptools package uses a normalized package name for the sdist.
(cherry picked from commit 8bc0d809a6)

Co-authored-by: Matt Clay <matt@mystile.com>
8 months ago
Matt Davis 42688586b5
Revert "New release v2.15.11 (#83044)" (#83057)
Should've been an rc1- reverting to use normal release process.

This reverts commit f0f806c022.
8 months ago
Matt Davis f0f806c022
New release v2.15.11 (#83044) 8 months ago
Abhijeet Kasurde a90fd26ddf
[bp-2.15] Fixes permission for cache json file to 644 (#83016)
Until ansible-core 2.12 the facts cache file created by this module, have permission set as 644 which allows the other users to read the cache, since ansible-core 2.13, we create the temporary file, but we do not set the permission after renaming the temporary file.  Adding the line to set the permission to allow other users/groups to read this file.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Co-authored-by: Rudnei Bertol Junior <rudnei@redhat.com>
8 months ago
Jordan Borean 8e07b46bde
winrm - Handle task timeout (#82784) (#82863)
When using winrm over HTTP with message encryption enabled and a task
has timed out the connection plugin will fail to cleanup the WinRM
command. This will change that exception into a warning as a timeout is
already an exception event and a failure to clean the operation should
not override the timeout error shown.

(cherry picked from commit 8aecd1f9b2)
8 months ago
Brian Coca 2324b6852c
Unarchive get zipinfo on more OS/distros (#82873) (#82876)
Not all implementations use -l as default for -Z on unzip

(cherry picked from commit 481d8bdc1e)
8 months ago
Martin Krizek f780c434a9
2.15: dnf5: replace removed API calls and add fallbacks (#83027)
* dnf5: replace removed API calls (#83020)

* dnf5: replace removed API calls

bfb6f32e15
96c9188f9c

* call set_group_with_name instead of setting group_with_name

c7b88428f3

---------

Co-authored-by: Matt Martz <matt@sivel.net>
(cherry picked from commit 4e57249d59)

* Fallbacks for brand new APIs that don't exist in released dnf5 (#83022)

(cherry picked from commit 57750e2cf7)

---------

Co-authored-by: Matt Martz <matt@sivel.net>
8 months ago
Felix Fontein 8ba086ce87
Do not mangle plugin names in collections that start with an underscore. (#82574) (#82886)
(cherry picked from commit c0821346fc)
8 months ago
Sloane Hertel 12239abf72
fix handling allow_duplicates with the role cache (#82691) (#82928)
allow_duplicates is not part of the role uniqueness, so the value on the cached role may not match the current role.

* remove the allow_duplicates check from Role.has_run() which operates on the deduplicated role
* check the current role's allow_duplicates value in the strategy

(cherry picked from commit b3d8cdde5d)

Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
8 months ago
Matt Martz ba588f1b79
Update Ansible release version to v2.15.10.post0. (#82909) 8 months ago
Matt Martz 2c7e56732f
New release v2.15.10 (#82906) 8 months ago
Matt Clay 7bed756498
[stable-2.15] ansible-test - Fix Alpine libexpat bootstrapping (#82897)
(cherry picked from commit ca168eb367)
8 months ago
Matt Martz 4008e2cf70
Update Ansible release version to v2.15.10rc1.post0. (#82842) 9 months ago
Matt Martz 78381daaa5
New release v2.15.10rc1 (#82838) 9 months ago
Jordan Borean 9b07e69822
Re-enable psrp tests that were disabled (#82785) (#82787)
(cherry picked from commit bb030db546)
9 months ago
Jordan Borean 8190a2ad7a
Avoid winrm hang on stdin write failure (#82766) (#82781)
If the connection plugin fails to write the data to run to stdin we will
only attempt to get the output with one operation attempt. If this times
out we will consider the command to have failed and raise an exception
instead of forever attempting to get the output.

(cherry picked from commit 942424e10b)
9 months ago
Martin Krizek 407544f283
Prevent failures due to unsafe plugin name (#82759) (#82790)
(cherry picked from commit 56f31126ad)
9 months ago
Matt Martz 5844f4305e
[stable-2.15] Install crun from Alpine 3.19 for known musl compatibility (#82812). (#82815)
(cherry picked from commit 86f48a526a)
9 months ago
Matt Clay 1eb9b30dce
[stable-2.15] ansible-test - Add work-around for pytest>=8 errors (#82723) (#82728)
* ansible-test - Add work-around for pytest>=8 errors
* Update changelogs/fragments/ansible-test-pytest-8.yml

(cherry picked from commit a1edb61ce7)
9 months ago
Matt Martz d3f1bf138a
[stable-2.15] Disable ansible-test podman container tests on Ubuntu 22.04 (#82748) (#82753)
(cherry picked from commit 9a8be1e)
9 months ago
Mark Goddard fecd89786c
Fix issues with ansible-playbook-callbacks test (#82407) (#82631)
The timing of the async tasks was a little unpredictable, meaning that
sometimes we would get an unexpected number of v2_runner_on_async_poll
callbacks, and fail the test. This change fixes the issue by increasing
the poll interval to 2 seconds and the sleep duration to 3 seconds, such
that on a reasonably responsive system we will poll twice per task, with
the sleep ending in the middle of the two polls.

The include_me.yml file does not exist in this integration test. It has
been added.

The remote_tmp_dir.path expression is invalid - the setup_remote_tmp_dir
role uses set_fact to set remote_tmp_dir to remote_tmp_dir.path.

The integration tests run with ANSIBLE_HOST_PATTERN_MISMATCH=error,
meaning that the final play was never reached. Set
ANSIBLE_HOST_PATTERN_MISMATCH=warning to continue past the play and
trigger the v2_playbook_on_no_hosts_matched callback.

(cherry picked from commit 4a2de764ec)
10 months ago
Matt Martz fbbb8fc905
Update Ansible release version to v2.15.9.post0. (#82621) 10 months ago
Matt Martz 080b5103be
New release v2.15.9 (#82618) 10 months ago
Matt Martz dc3dd29401
Update Ansible release version to v2.15.9rc1.post0. (#82590) 10 months ago
Matt Martz 7e6527a78f
New release v2.15.9rc1 (#82586) 10 months ago
Nilashish Chakraborty 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)
10 months ago
Brian Coca 09879cbe14
Better errors for delegate_to (#82319) (#82341)
Handle empty result of templating
  Also skip work when we omit

(cherry picked from commit 6ebefaceb6)
11 months ago
Brian Coca 74869eb052 ansible-config dedupe ini plugin entries (#82498)
added test for ini file integrity, also ensuring no dupes

(cherry picked from commit 6c2895fd88)
11 months ago
Felix Fontein 55f0080358
Fix broken docs RST reference. (#82286) (#82298)
(cherry picked from commit 479949aad2)
11 months ago
Sloane Hertel 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)
11 months ago
Matt Martz 78db3a3de6
[stable-2.15] Ensure ANSIBLE_NO_LOG is respected (CVE-2024-0690) (#82565) (#82567)
(cherry picked from commit 6935c8e)
11 months ago
Sloane Hertel 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)
11 months ago
Matt Martz 0db4bb36ba
Enable directly using `AnsibleUnsafeText` with Python `pathlib` (#82510) (#82563)
* Enable directly using `AnsibleUnsafeText` with Python `pathlib`. Fixes #82414.
(cherry picked from commit c6a652c081)
11 months ago
Abhijeet Kasurde 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)
11 months ago
Matt Martz b7a93e586c
Update Ansible release version to v2.15.8.post0. (#82403) 12 months ago
Matt Martz ba1854271b
New release v2.15.8 (#82400) 12 months ago
Matt Martz 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)
12 months ago
Sviatoslav Sydorenko (Святослав Сидоренко) 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>
12 months ago