Commit Graph
54231 Commits
Author SHA1 Message Date
Martin KrizekandGitHub a4ca9e5ee2 dnf, dnf5: fix installing via wildcard (#83481) (#83492)
Fixes #83373

(cherry picked from commit 0ee6e39615)
2024-07-08 14:36:52 -06:00
Martin KrizekandGitHub afcaaeb9f6 [stable-2.16] Use f38 official repo for libdnf5 package (#83430)
This will make stable-2.16 testing more stable as the f38 copr repo is
going away at some point. It suffices to test against the nightly repo
in stable-2.17 and devel.
2024-07-08 13:24:59 -07:00
Sviatoslav Sydorenko (Святослав Сидоренко)andGitHub c8c45cdfb4 🧪 Switch CentOS 7 yum repo mirrors to the vault (#83523)
The distro itself reached EoL on June 30, 2024, but these repository
archives live on and should remain usable for testing.

Refs:
* https://www.redhat.com/en/topics/linux/centos-linux-eol
* https://github.com/ansible/pylibssh/commit/01d3442f
* https://gist.github.com/hkneptune/4961532c2df691db79a1c6b72c251b25
* https://vault.centos.org/7.9.2009/
2024-07-03 10:27:56 -07:00
Matt MartzandGitHub 0293a105ec Update Ansible release version to v2.16.8.post0. (#83463) 2024-06-17 19:01:08 +00:00
Matt MartzandGitHub 2be0e277c4 New release v2.16.8 (#83461) v2.16.8 2024-06-17 13:10:21 -05:00
Matt ClayandGitHub 3135e55dc9 [stable-2.16] ansible-test - Update PyPI test container to 3.1.0 (#83432). (#83440)
(cherry picked from commit 5af5b4b6c8)
2024-06-13 15:02:23 -07:00
Matt MartzandGitHub 147bb4e54c Update Ansible release version to v2.16.8rc1.post0. (#83409) 2024-06-10 19:16:02 +00:00
Matt MartzandGitHub 97384de6c1 New release v2.16.8rc1 (#83407) v2.16.8rc1 2024-06-10 13:27:05 -05:00
Matt ClayandGitHub 4576f33ac5 Update azure-pipelines-test-container (#83376) 2024-06-06 17:20:12 -07:00
Abhijeet KasurdeandGitHub a31f07eee7 [stable-2.16] filter: update the documentation for win_splitdrive (#83307)
Fixes: #83299

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit c1d41ee44e)
2024-06-06 16:00:05 -05:00
Sloane HertelandGitHub 68463c2e4d Fix task.resolved_action callbacks (#82003) (#83330)
* Fix task.resolved_action for callbacks when playbooks use action or local_action

* Fix using module_defaults with 'action' and 'local_action' task FA and add a test case

Fixes #81905

(cherry picked from commit f2435375a8)
2024-06-06 15:59:57 -05:00
bcc4718202 [stable-2.16] The extension returned by the splitext contains the dot (#83334)
Fixed examples for splitext filter plugin

(cherry picked from commit 454dd9e91d)

Co-authored-by: Benoît Geeraerts <10222438+b-enoit-be@users.noreply.github.com>
2024-06-06 15:59:47 -05:00
Jordan BoreanandGitHub ae8da5eeae powershell - Improve Add-Type tempdir handler (#83080) (#83344)
Improves the Add-Type temporary directory handler to include a retry
mechanism and not fail on an error. Deleting a temporary file used in
compilation is not a critical error and should improve the reliability
of Ansible on Windows hosts.

(cherry picked from commit b8f1add983)
2024-06-06 15:59:39 -05:00
1ef184ba2d [stable-2.16] Fix Test failure with cowsay installed/present (#83350)
(cherry picked from commit e07b4edc54)

Co-authored-by: MajesticMagikarpKing <69774548+yctomwang@users.noreply.github.com>
2024-06-06 15:59:26 -05:00
Matt MartzandGitHub a97e39b90f Update Ansible release version to v2.16.7.post0. (#83283) 2024-05-20 19:26:33 +00:00
Matt MartzandGitHub 4a0839bf60 New release v2.16.7 (#83279) v2.16.7 2024-05-20 13:41:55 -05:00
Matt MartzandGitHub 92a0ed8ad5 Update Ansible release version to v2.16.7rc1.post0. (#83245) 2024-05-13 18:11:23 +00:00
Matt MartzandGitHub 495fe7537d New release v2.16.7rc1 (#83241) v2.16.7rc1 2024-05-13 12:24:24 -05:00
Jordan BoreanandGitHub 96bacf54b2 Add version ceiling for pypsrp (#83122) (#83163)
* 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)
2024-05-09 22:30:18 +00:00
Matt ClayandGitHub c0f7e9cc2c ansible-test - Use PyPI proxy for centos7 (#83226) 2024-05-09 14:48:27 -07:00
Martin KrizekandGitHub c93643fc4d handlers: fix executing in lockstep using linear (#83030) (#83073)
Fixes #82307

(cherry picked from commit a3cdd831b3)
2024-05-09 10:06:29 -07:00
5d3a372ef6 [stable-2.16] Issue #80267: Remove user not found warning (#80291) (#83078)
(cherry picked from commit e0bf76e)

Co-authored-by: Sebbo94BY <Sebastian-Kraetzig@gmx.de>
2024-05-09 10:05:01 -07:00
Brian CocaandGitHub 40bdb2b471 inspect components, ansible_managed templatable (#83053) (#83128)
* inspect components, ansible_managed templatable

fixes #82322

(cherry picked from commit 124d03145c)
2024-05-09 10:03:41 -07:00
Sloane HertelandGitHub 59c5f776b6 Add the task info for tombstoned module/action plugins (#82451) (#83040)
* Add the task info for tombstoned plugins

* Fix deprecation for 'include' by removing it from BUILTIN_TASKS which skip the plugin loader lookup

* changelog

remove obsolete unit test using 'include'

* Update changelogs/fragments/improve-tombstone-error.yml

(cherry picked from commit caa86cc4df)
2024-05-09 09:58:11 -07:00
Martin KrizekandGitHub 28092180b0 [stable-2.16] dnf fixes (#83084)
* dnf: fix installing a package based the file it provides (#82744)

Fixes #82461

(cherry picked from commit a28709f92d)

* dnf: utilize the API for the installed checks (#82725)

Fixes #71808
Fixes #76463
Fixes #81018

(cherry picked from commit f1ded0f417)

* setup_rpm_repo/create_repo: "Arch dependent binaries in noarch package" (#83108)

This fixes "Arch dependent binaries in noarch package" error cause by
including files created by make_elf function in noarch packages. While the
error only manifests itself on EL 7 and 8 it is better to use files
suitable for noarch packages to prevent the error potentially
re-occuring in the future.

(cherry picked from commit 87bead3dcf)
2024-05-09 09:55:32 -07:00
Abhijeet KasurdeandGitHub 1f4eb2160b [stable-2.16] assemble: fixed missing parameter error (#83124)
* content is an optional parameter for _get_diff_data API

Fixes: #82359

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2024-05-09 09:53:03 -07:00
Sloane HertelandGitHub 72013559fe Fix installing roles containing symlinks (#82911) (#83137)
* 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)
2024-05-09 09:37:50 -07:00
Abhijeet KasurdeandGitHub b92e2eb20b [stable-2.16] uri: update docs for follow_redirects (#83177)
* [stable-2.16] 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>
2024-05-09 09:36:16 -07:00
Matt MartzandGitHub 3761e11a5c [stable-2.16] Don't hardcode the dnf module, dynamically select one (#83183). (#83185)
(cherry picked from commit dc6b77beca)
2024-05-02 12:59:50 -05:00
Matt ClayandGitHub 691ee745e0 [stable-2.16] Update sdist path in release tool (#83059)
The latest setuptools package uses a normalized package name for the sdist.

(cherry picked from commit 8bc0d809a6)
2024-04-16 17:25:33 +00:00
Matt ClayandGitHub 955d771fbf Update Ansible release version to v2.16.6.post0. (#83048) 2024-04-16 10:13:12 -07:00
Matt DavisandGitHub 5bd74a531f New release v2.16.6 (#83045) v2.16.6 2024-04-15 16:57:44 -07:00
16a89780ed [stable-2.16] Fixes permission for cache json file to 644 (#83017)
* Fixes permission for cache json file from 600 to 644 (#82761)

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.

* [bp-2.16] Fixes permission for cache json file to 644

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.

---------

Co-authored-by: Rudnei Bertol Junior <rudnei@redhat.com>
2024-04-15 17:07:51 +00:00
Brian CocaandGitHub 1b860558e3 ansible-config: ensure we get templated default (#82974) (#83009)
AKA all defaults rendered

(cherry picked from commit 46137127a2)
2024-04-15 10:01:18 -07:00
Abhijeet KasurdeandGitHub 09f4549859 [bp-2.16] facts: Add a generic detection for VMware product name (#83024)
* Use startswith instead of hardcoded values in VMWare product
  detction

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2024-04-15 10:01:09 -07:00
e6361322e3 2.16: dnf5: replace removed API calls and add fallbacks (#83026)
* dnf5: replace removed API calls (#83020)

* dnf5: replace removed API calls

https://github.com/rpm-software-management/dnf5/commit/bfb6f32e15c359011e078c81b78d160ef10708dd
https://github.com/rpm-software-management/dnf5/commit/96c9188f9c5b5a78aa550b9a15ed748e6f306e8d

* call set_group_with_name instead of setting group_with_name

https://github.com/rpm-software-management/dnf5/commit/c7b88428f314bebb4cfbb733c7c7bc6a42c2b666

---------

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>
2024-04-12 08:51:30 -07:00
Felix FonteinandGitHub e631b5b36a Do not mangle plugin names in collections that start with an underscore. (#82574) (#82885)
(cherry picked from commit c0821346fc)
2024-04-10 16:00:17 -05:00
Brian CocaandGitHub e70203300a Unarchive get zipinfo on more OS/distros (#82873) (#82877)
Not all implementations use -l as default for -Z on unzip

(cherry picked from commit 481d8bdc1e)
2024-04-10 15:49:06 -05:00
Abhijeet KasurdeandGitHub 416517c90e [stable-2.16] find: do not fail on PermissionError (#82880)
* Log and skip permission errors on files and directories

Fixes: #82027


(cherry picked from commit f73d72e830)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2024-04-10 15:48:29 -05:00
Jordan BoreanandGitHub edbb6d1d59 Allow check mode async task disabling check_mode (#82827) (#82861)
* Allow check mode async task disabling check_mode

Allows running an async task with check_mode: False when the playbook is
being run in check mode.

* Add check_mode attribute to internal cleanup task

(cherry picked from commit c9086061ca)
2024-04-10 14:56:22 -05:00
Felix FonteinandGitHub 9b77492e96 blockinfile: do not crash when filename has no path (#81638) (#82869)
* Do not crash when filename has no path.

* Clean up file after test.

(cherry picked from commit e659c23bf2)
2024-04-10 14:27:50 -05:00
Jordan BoreanandGitHub daf71c51e0 winrm - Handle task timeout (#82784) (#82864)
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)
2024-04-10 14:27:26 -05:00
Brian CocaandGitHub f8162c19a2 centralize and complete the internal static vars (#82872) (#82925)
* centralize and complete the internal static vars

These vars are internal and should not be overridden nor templated
from inventory nor hostvars.

(cherry picked from commit 8704b9fc29)
2024-04-10 14:23:45 -05:00
85697beee0 fix handling allow_duplicates with the role cache (#82691) (#82927)
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>
2024-04-10 14:08:13 -05:00
6ac75a20d0 Fix traceback inheriting from NetworkConnectionBase and add integration tests (#82954) (#82956)
(cherry picked from commit 4bddbe69d5)

Co-authored-by: Jeroen van Bemmel <jvb127@gmail.com>
2024-04-10 14:07:56 -05:00
bdf45d1fbc [stable-2.16] dnf: obey the keepcache setting (#82735) (#82964)
Fixes #81954
(cherry picked from commit 77ab7af)

Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
2024-04-10 14:07:38 -05:00
Jordan BoreanandGitHub 5a3bcd4bac fetch - add error check on calculated dest (#82970) (#82990)
Add explicit error when the calculated dest path for fetch becomes a
local directory. The existing behaviour will not be checked unlike when
the path did not end with a trailing slash.

(cherry picked from commit 179bc1dabd)
2024-04-10 14:07:12 -05:00
Matt MartzandGitHub 1e03880b6f Update Ansible release version to v2.16.5.post0. (#82910) 2024-03-25 14:55:16 -05:00
Matt MartzandGitHub ee04df4796 New release v2.16.5 (#82907) v2.16.5 2024-03-25 12:07:00 -05:00
Matt ClayandGitHub d469cffff5 [stable-2.16] ansible-test - Fix Alpine libexpat bootstrapping (#82896)
(cherry picked from commit ca168eb367)
2024-03-22 15:40:54 -07:00