Commit Graph

54700 Commits (a3c86e6ac8a321fb25e14ee726e596f3f401549e)
 

Author SHA1 Message Date
Matt Martz a3c86e6ac8
New release v2.18.5 (#85025) 8 months ago
Matt Martz 061a9ce68d
Update Ansible release version to v2.18.5rc1.post0. (#84987) 8 months ago
Matt Martz 1307837b08
New release v2.18.5rc1 (#84980) 8 months ago
Brian Coca aa43321d12
Fix uninstall tests (#84973) (#84974)
match file name to package_manager detection of dnf5

(cherry picked from commit 6fc592df9b)
8 months ago
Matt Martz 46b5f36cf7
Revert "[stable-2.18] basic: remember the user sensitive information to use later (#84699) (#84939)" (#84960)
This reverts commit 795970751e.
8 months ago
Abhijeet Kasurde 795970751e
[stable-2.18] basic: remember the user sensitive information to use later (#84699) (#84939)
* Git allows embedding username and password in repo URL for
  https authentication. This may lead to exposing the user sensitive
  information to logs and unautheticated users.
  Adding no_log will partially solve this.
* Added documentation warning user about URL embedded with username
  and password.
* Added logic to remember user sensitive information for later sanitization

Fixes: #84557
(cherry picked from commit 19e9f3d)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
8 months ago
Felix Fontein 9258cb7eaf
Fix markup for config variable reference. (#84901) (#84903)
(cherry picked from commit b9e35d66c4)
8 months ago
Abhijeet Kasurde 27d6a409dc
[bp-2.18] find: skip ENOENT while enumerating files (#84886)
* skip 'no such file or directory' error code while files and
  directories and report them.

Fixes: #84873

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
(cherry picked from commit 5280850130)
8 months ago
Brian Coca 8c03e3a74a
Fix wait_for examples (#84870) (#84875)
connection: local is wrong as configured remote python does not always match controller
missing the timeout to wait 300s before error

(cherry picked from commit 3690819ee8)
8 months ago
Brian Coca bd6594e321
needed intesect, not difference (#84839) (#84859)
fixes #84750

Added tests to verify output when using smart + others

(cherry picked from commit 0d4f00f5c8)
8 months ago
Brian Coca 1dceddb156
Changed human_to_bytes input to a string (#84336) (#84857)
For it to be a human readable description it can't be an int.

(cherry picked from commit df0fe81383)

Co-authored-by: Sammy Hori <git@sammyhori.com>
8 months ago
Sloane Hertel 9f9991eb10
uri: form location correctly from relative redirect (#84541) (#84854)
* uri: form location correctly from relative redirect

Previously, the original URL would be combined with the relative location incorrectly, especially for URL of any complexity.

Add simple tests demonstrating the problem that fail without the fix

* fix pylint error, import the method similar to other uri methods

* add changelog fragment

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
(cherry picked from commit 61a6222e0e)

Co-authored-by: Robert Muir <rmuir@apache.org>
8 months ago
Matt Clay f35e3e6ac8
[stable-2.18] Pin `wheel` to resolve build issues (#84943) (#84944)
(cherry picked from commit 8b0c4825ae)
8 months ago
Matt Martz 44bda58af1
[stable-2.18] Handle forwarded exceptions from dnf5-5.2.13 (#84933) (#84938)
(cherry picked from commit 6a274d8)
8 months ago
Matt Martz 47e513ac25
Update Ansible release version to v2.18.4.post0. (#84895) 8 months ago
Matt Martz 06c507c02f
New release v2.18.4 (#84892) 8 months ago
Matt Martz b5fdcb1e4e
Update Ansible release version to v2.18.4rc1.post0. (#84846) 9 months ago
Matt Martz a3a2bf8f0f
New release v2.18.4rc1 (#84842) 9 months ago
Abhijeet Kasurde d0b8db8aa0
[bp-2.18] facts: use pagesize for darwin (#84809)
Fixes: #84773

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
(cherry picked from commit 50b4e0d279)
9 months ago
Martin Krizek 9fe08b37d1
[stable-2.18] dnf5: fix is_installed check for provided packages (#84802) (#84810)
Fixes #84578
(cherry picked from commit 7fbaf6c)
9 months ago
Martin Krizek aa5a2fceaa
[stable-2.18] dnf5: use new pkg_gpgcheck option, fallback to deprecated one (#84791) (#84811)
(cherry picked from commit f11dfa7cce)
9 months ago
Matt Martz a5ce34307f
[stable-2.18] Limit respawn to supported python versions (#83662) (#84769)
* Limit respawn to supported python versions
(cherry picked from commit 00067f1)
9 months ago
Jordan Borean 6d7c4701c7
Windows - Support WDAC Audit Mode (#84730) (#84734)
Fix up bug when attempting to run any module on a Windows host that has
been configured with WDAC and Dynamic Code Security in audit mode. This
does not enable WDAC support with signed scripts so Ansible will still
not pass the audit events but it no longer fails to run.

(cherry picked from commit e5ec1ee76c)
9 months ago
Martin Krizek 5307ef6e63
[stable-2.18] dnf tests: unique environment/group name (#84785) (#84786)
Prevents `Group state for \"customenvgroup\" not found` error which may
or may not be a regression in dnf5. Just name groups/envs uniquely to
workaround the issue.
(cherry picked from commit 09391f38f0)
9 months ago
Matt Clay 2c0ce79ff5
Update Ansible release version to v2.18.3.post0. (#84747) 9 months ago
Matt Clay b9d7632536
New release v2.18.3 (#84745) 9 months ago
Matt Martz 0f7c188060
Update Ansible release version to v2.18.3rc1.post0. (#84724) 10 months ago
Matt Martz 292d303c50
New release v2.18.3rc1 (#84722) 10 months ago
Sloane Hertel 534d5acfcc
linear - don't treat end_role as a run_once task (#84673) (#84710)
(cherry picked from commit a086c34a91)
10 months ago
Martin Krizek b261ebcde1
[stable-2.18] targets/handlers: fix incorrect test cmd (#84567) (#84601)
(cherry picked from commit 3b6d086f5e)
10 months ago
Felix Fontein 507cf4beb4
Extend description for meta refresh_inventory (#84691) (#84706)
* Link to amazon.aws.aws_ec2 inventory plugin.

* Mention that refresh_inventory does not update the selected hosts for a play.

* Address comments by bcoca.

* Apply suggestions from code review

---------

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit ea2fe793aa)
10 months ago
Sloane Hertel 72391efbe3
[2.18] [fix] `warn_if_reserved` expects a list (#84624) (#84671)
* [fix] `warn_if_reserved` expects a list (#84624)

Fixes #84623

(cherry picked from commit 48d71ba3aa)

* changelog

* Test include_vars reserved variable matching (#84678)

* Add test case for include_vars

* Revise test to catch erroneous warnings

(cherry picked from commit 333ee8d010)

---------

Co-authored-by: Dominique Quatravaux <dominique@quatravaux.org>
10 months ago
Matt Clay 7371f780bd
[stable-2.18] ansible-test - Use urllib intead of curl (#84551) (#84629)
Also added automatic retries on HTTP request exceptions, since all currently implemented methods (GET/PUT/DELETE) are idempotent.

(cherry picked from commit 7677bf1c9b)
10 months ago
Matt Clay 326fbcdcb3
[stable-2.18] Use separate venvs for each release command (#84641) (#84643)
This avoids requirements conflicts between different commands invoked by the release tool.

(cherry picked from commit 4cc47307ef)
10 months ago
Matt Martz 307f2fd93f
Update Ansible release version to v2.18.2.post0. (#84617) 10 months ago
Matt Martz 7c5e00274b
New release v2.18.2 (#84615) 10 months ago
Matt Martz b4dfc6a660
Update Ansible release version to v2.18.2rc1.post0. (#84586) 11 months ago
Matt Martz 95bf4dd427
New release v2.18.2rc1 (#84583) 11 months ago
Jordan Borean ee0084dbcf
Ansible.Basic - Fix required_if check (#84562) (#84582)
Fixes the Ansible.Basic `required_if` check when the option to check is
either unset or explicitly set to null.

(cherry picked from commit 8c5e33cd3a)
11 months ago
Jordan Borean 5f5e5d321b
ssh - Improve CLIXML stderr parsing (#84569) (#84580)
Improves the logic for parsing CLIXML values in the stderr returned by
SSH. This fixes encoding problems by having a fallback in case the
output is not valid UTF-8. It also can now extract embedded CLIXML
sequences in all of stderr rather than just at the start.

(cherry picked from commit f86c58e2d2)
11 months ago
Jordan Borean 0d44d0fde4
ansible-test - fix coverage for test modules (#84366) (#84401)
Fixes the coverage path translation for modules located in integration
test paths. Instead of trying to match by the unique temporary path name
that the module is executed as, the reporting tool will translate it to
the static path that the module is actually located under.

(cherry picked from commit f9b58fa13f)
11 months ago
Brian Coca 420287e83d
fix incongruent ansible-vault cli options (#84494) (#84552)
prompt now only errors if stdin is specifically triggered and not due to lack of other args

fixes #84489
---------

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
(cherry picked from commit a046ef5a95)
11 months ago
Brian Coca 3e22739cc8
fix warnings about reserved variable names to cover all sources (#84432) (#84542)
* fix warnings about reserved variable names to cover all sources (#84432)

Also remove redundant check from tqm
Now covers module output (set_fact/include_vars)
Includes play objects at any stage (tasks that error were not covered)
Added tests, moved them to role structure

(cherry picked from commit 20baf29a2a)

* fix template (#84563)

also fix gather_subset warning and add some comments/notes
---------

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 675d7201d8)

* reserved vars, avoid gather_subset (#84575)

(cherry picked from commit 3398c102b5)
11 months ago
Brian Coca 2ab0976f0e
gather_facts, fix 'smart' handling with network os and 'setup' (#84425) (#84471)
gather_facts, fix network_os and smart logic and defaults

setup will be default for smart only if network_os is not set, now you get warnings and errors when missing a valid facts module for a network os

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit c64c389007)
11 months ago
Sloane Hertel 2870532035
Make sure we are always using Lock from our multiprocessing context (#84453) (#84462)
* Make sure we are always using Lock from our multiprocessing context

* add clog frag

(cherry picked from commit 73d8f4ad46)

Co-authored-by: Matt Martz <matt@sivel.net>
11 months ago
Brian Coca 6cfec0f44a
Added None/empty notes to regex_search (#84437) (#84460)
(cherry picked from commit 3fffddc183)
11 months ago
Brian Coca 91e7f0a8a6
copy, prevent internal options in task (#84422) (#84457)
* copy, prevent internal options in task

fixes #84367

(cherry picked from commit 3c91eab0d8)
11 months ago
Sloane Hertel 53b08f82fc
fix reset_connection with templated connection variables (#84240) (#84439)
Signed-off-by: Alex Willmer <alex@moreati.org.uk>
(cherry picked from commit 59d9737788)

Co-authored-by: Alex Willmer <alex@moreati.org.uk>
11 months ago
Matt Clay 58c5fe2f8a
[stable-2.18] Fix uri integration test on Python 3.13 (#84518) (#84519)
(cherry picked from commit 91f4b71d40)
11 months ago
Matt Clay 88b6e14899
[stable-2.18] Fix result_pickle_error integration test (#84506) (#84507)
The test has been updated to use a custom type which does not support pickling,
instead of relying on Jinja's `Undefined` type. As of Jinja 3.1.5 that type now
supports pickle, which breaks the original implementation of the test.
(cherry picked from commit 5ec236b)
11 months ago