Commit Graph

4157 Commits (ca635fac4a3f577f8fb5fcd33ca954aa30bdf2e5)

Author SHA1 Message Date
sivel / Matt Martz ca635fac4a
[stable-2.17] Prevent IO capture hang/loss in `basic.run_command` (#85869) (#85893)
* Prevent run_command output truncation or hang

In cases when the selector used to monitor stdout/stderr activates without
data ready to read (a rare but normal condition), a read from a non-blocking
FD can return `None`, which was being conflated with an empty read (EOF)
condition. This caused the selector to be unregistered prematurely,
sometimes resulting in truncated output or hangs. `None` read results
are now excluded from EOF conditions.

* add changelog

---------
(cherry picked from commit 79ddee1)

Co-authored-by: Chris Meyers <chrismeyersfsu@users.noreply.github.com>
Co-authored-by: Matt Davis <nitzmahone@redhat.com>
3 months ago
Matt Clay 4c3b90a420
New release v2.17.14 (#85825) 4 months ago
Matt Clay 42d34f0960
New release v2.17.14rc1 (#85789) 4 months ago
Matt Clay 1efe8d0c4b
ansible-test - Update Ansible Core CI auth (#85717) (#85770)
Implement new authentication methods for accessing the Ansible Core CI service.

(cherry picked from commit be9e57366b)
4 months ago
Matt Clay cfa2570693
[stable-2.17] ansible-test - Limit bootstrap package install retries (#85544) (#85548)
(cherry picked from commit ee297bb7ca)
5 months ago
Matt Clay 5ad66656c3
Replace FreeBSD 13.3 with FreeBSD 13.5 (#85534)
* ansible-test - Replace FreeBSD 13.3 with 13.4 (#84236)

* ansible-test - Replace FreeBSD 13.3 with 13.4
* ansible-test - Fix typos in bootstrap.sh
* Skip libfaketime on FreeBSD except FreeBSD 14

(cherry picked from commit a98801903d)

* ansible-test - Replace FreeBSD 13.4 with 13.5 (#84812)

(cherry picked from commit 4efb01c2f3)

* ansible-test - Use OS packages on FreeBSD 13.5 (#85530)

(cherry picked from commit cdb7af094b)
5 months ago
Matt Davis a4c2de270b
New release v2.17.13 (#85482) 6 months ago
Matt Davis c4cac8e18f
New release v2.17.13rc1 (#85455) 6 months ago
Brian Coca c3d8d790e7
ansible-doc display docs for modules w/o ext (#85299) (#85316)
Fixed case in which listing modules for docs failed to get sidecar


(cherry picked from commit 7e495f4b20)

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
6 months ago
Matt Clay 6c0d8250c9
[stable-2.17] ansible-test - Fix relative import resolution (#85328) (#85446)
(cherry picked from commit 093ac8df2d)
6 months ago
Matt Clay 7543d309b0
[stable-2.17] ansible-test - Add RHEL 10.0 remote (#85189) (#85267)
* ansible-test - Add RHEL 10.0 remote (#85189)

* ansible-test - Add RHEL 10.0 remote

* Update tests for RHEL 10
* Fix iptables test
* Rework rpm_key integration test

(cherry picked from commit 53b0f1645b)

* Remove unsupported sub_key tests

* Add RHEL 10 support to dnf test
7 months ago
Matt Clay 80e8a5d111
[stable-2.17] User: Update prompt for SSH key passphrase prompt (#84521) (#85235)
* update prompt for SSH key passphrase prompt
* introduce timeout in SSH key passphrase interaction

Fixes: #84484

(cherry picked from commit 8588401387)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
7 months ago
Matt Davis c44757e44a
New release v2.17.12 (#85178) 8 months ago
Matt Clay 199a564dad
New release v2.17.12rc1 (#85143) 8 months ago
Felix Fontein a2225f78f8
ansible-doc: fix indent and line wrapping for first line of (sub-)option and (sub-)return value descriptions (#84690) (#84994)
* Fix initial indent for descriptions of suboptions.
* Fix line width for initial line of option descriptions.

(cherry picked from commit 352d8ec33a)
8 months ago
Brian Coca 19d35721c3
ensure predictable permissions on module artifacts (#84948) (#85073)
* ensure predictable permissions on module artifacts (#84948)

and test it!

(cherry picked from commit 9f894b81c2)

* missing aliases
8 months ago
Jordan Borean bc955df46c
[stable-2.18] - script fix become on Windows (#85077) (#85078)
Fixes become when using script on Windows and the become options were
set through host vars or sources that was not set on the task directives
itself.

(cherry picked from commit 59e2ddcae0)
8 months ago
Matt Clay 7c6147ed78
[stable-2.17] ansible-test - Use `-t` for container stop timeout (#85019) (#85057)
(cherry picked from commit 0aa8afbaf4)
8 months ago
Matt Martz 5b29d916d9
New release v2.17.11 (#85024) 9 months ago
Matt Clay 3546111f2d
[stable-2.17] ansible-test - Replace FreeBSD 14.0 with 14.1 (#85028)
(cherry picked from commit a121a169e3)
9 months ago
Matt Martz fea2ca5817
New release v2.17.11rc1 (#84981) 9 months ago
Matt Martz 1b01f1af94
Revert "[stable-2.17] basic: remember the user sensitive information to use later (#84699) (#84940)" (#84961)
This reverts commit 8bc0cab838.
9 months ago
Abhijeet Kasurde 8bc0cab838
[stable-2.17] basic: remember the user sensitive information to use later (#84699) (#84940)
* 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>
9 months ago
Brian Coca 73189a7a8d
needed intesect, not difference (#84839) (#84860)
fixes #84750

Added tests to verify output when using smart + others

(cherry picked from commit 0d4f00f5c8)
9 months ago
Matt Clay 6f5fbf785c
[stable-2.17] Pin `wheel` to resolve build issues (#84943) (#84945)
(cherry picked from commit 8b0c4825ae)
9 months ago
Matt Martz 579bd7c07d
New release v2.17.10 (#84891) 9 months ago
Matt Martz d84412e5ff
New release v2.17.10rc1 (#84841) 10 months ago
Jordan Borean 5575090626
Windows - Support WDAC Audit Mode (#84730) (#84733)
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)
10 months ago
Matt Clay 3397319396
New release v2.17.9 (#84746) 10 months ago
Matt Martz f0d7f96fee
New release v2.17.9rc1 (#84721) 11 months ago
Sloane Hertel 46f5030fa3
[2.17] [fix] `warn_if_reserved` expects a list (#84624) (#84672)
* [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>
11 months ago
Matt Clay c71a404b97
[stable-2.17] ansible-test - Use urllib intead of curl (#84551) (#84630)
Also added automatic retries on HTTP request exceptions, since all currently implemented methods (GET/PUT/DELETE) are idempotent.

(cherry picked from commit 7677bf1c9b)
11 months ago
Matt Martz 3c3f153595
New release v2.17.8 (#84614) 11 months ago
Matt Martz 04aef846e8
New release v2.17.8rc1 (#84584) 12 months ago
Jordan Borean 3ce869824e
Ansible.Basic - Fix required_if check (#84562) (#84581)
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)
12 months ago
Brian Coca a9550b835e
fix incongruent ansible-vault cli options (#84494) (#84553)
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)
12 months ago
Brian Coca d4b311dbaa
gather_facts, fix 'smart' handling with network os and 'setup' (#84425) (#84472)
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)
12 months ago
Brian Coca dfff9c3f25
copy, prevent internal options in task (#84422) (#84459)
* copy, prevent internal options in task

fixes #84367

(cherry picked from commit 3c91eab0d8)
12 months ago
Jordan Borean 423edf73bd
ansible-test - fix coverage for test modules (#84366) (#84400)
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)
12 months ago
Sloane Hertel 496c4982e6
Make sure we are always using Lock from our multiprocessing context (#84453) (#84463)
* 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>
12 months ago
Sloane Hertel 98e9daa000
fix reset_connection with templated connection variables (#84240) (#84440)
* ssh: Test reset_connection with templated ansible_ssh_executable

Add failing test to confirm subsequent fixes are necessary & sufficient.

* ssh: Fix reset_connection with templated ansible_ssh_executable

Signed-off-by: Alex Willmer <alex@moreati.org.uk>
(cherry picked from commit 59d9737788)

Co-authored-by: Alex Willmer <alex@moreati.org.uk>
12 months ago
Brian Coca 819e437d96
fix warnings about reserved variable names to cover all sources (#84432) (#84543)
* 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)
12 months ago
Matt Martz dc0e3bd16c
New release v2.17.7 (#84414) 1 year ago
Matt Martz a8c8f1d82b
New release v2.17.7rc1 (#84389) 1 year ago
Sloane Hertel ee55ffa5e0
Fix returning unreachable for looped tasks (#84049) (#84205)
* Fix returning unreachable for looped tasks

Add tests for ignore_unreachable and loop

(cherry picked from commit 03acb22f99)
1 year ago
Martin Krizek 8961fb1bf2
[stable-2.17] dnf5: fix is_installed check (#84275) (#84363)
* dnf5: fix is_installed check (#84275)

Fixes #84259

(cherry picked from commit a27a7a27d1)

* dnf5 - consolidate package resolving settings (#84335)

Fixes #84334

(cherry picked from commit c99493eb3f)

* New change as create_repo has been rewritten in 2.18
1 year ago
Jordan Borean 98774d15d7
Fix CVE-2024-11079 hostvars unsafe context (#84339) (#84354)
Fix to preserve an unsafe variable when accessing through an
intermediary variable from hostvars.

(cherry picked from commit 2936b80dbb)
1 year ago
Abhijeet Kasurde 1c86e75227
Remove selinux import (#83674) (#84317)
Remove selinux import which was kept for backward compatibility

Fixes: #83657

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit d23a2de5f2)
1 year ago
Matt Clay d0c9fc3edd
[stable-2.17] ansible-test - Fix interactive cmd traceback (#84264) (#84266)
(cherry picked from commit 68bfa37838)
1 year ago
Matt Martz 05e01efa85
New release v2.17.6 (#84250) 1 year ago