summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Test aliases fix (#84377)Lee Garrett8 days15-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * integrity tests: Tag (destructive) root tests as such - apt_key needs root to touch the apt key database - debconf needs root to change debconf values of system packages - gathering writes to /etc/ansible/*, writeable only to root - group creates system groups - noexec mounts/umounts a ramdisk - systemd requires root to start/stop services Mark all except noexec as "destructive" as they change the state of the system. * integration test cron requires root, as it calls setup_cron * integration test dpkg_selection runs dpkg as root * integration test facts_linux_network requires root It adds/removes IP addresses from network interfaces, requiring root for that. * integration test package requires root installs/removes system packages * Integration test service requires root Creates/starts/stops/removes systemd services * integration test user requires root to create users * integration tests using setup_test_user require root --------- Co-authored-by: Lee Garrett <lgarrett@rocketjump.eu>
* dnf5,apt: add auto_install_module_deps option (#84292)Martin Krizek12 days5-61/+132
| | | | | * dnf5,apt: add auto_install_module_deps option Fixes #84206
* ansible-test - Improve container network detection (#84323)Matt Clay2024-11-192-4/+10
| | | | When detection of the current container network fails, a warning is now issued and execution continues. This simplifies usage in cases where the current container cannot be inspected, such as when running in GitHub Codespaces.
* dnf5 - consolidate package resolving settings (#84335)Martin Krizek2024-11-193-8/+42
| | | Fixes #84334
* dnf5: fix is_installed check (#84275)Martin Krizek2024-11-194-1/+67
| | | Fixes #84259
* include_vars - fix including new hash variables when hash_behaviour is set ↵Sloane Hertel2024-11-143-3/+6
| | | | to merge (#84303)
* Sequence query fix (#83758)James Ramsaran2024-11-143-7/+48
| | | | Co-authored-by: flowerysong <junk+github@flowerysong.com>
* vars/varnames more examles more varied (#84300)Brian Coca2024-11-122-7/+20
| | | also ref each other in seealso as they will commonly be used toghether
* Deprecated libvirt_lxc_noseclabel config (#84287)Abhijeet Kasurde2024-11-122-1/+7
| | | | | | | | | | | | | | | * Deprecated libvirt_lxc_noseclabel config * deprecate moved libvirt_lxc_noseclabel config Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> * Make CI green I Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> --------- Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Add tests for deprecations (#84284)Abhijeet Kasurde2024-11-122-3/+12
| | | | | | | * Check for module deprecation * Check for module option deprecation * Check for plugin deprecation Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* package_facts fix empty packages on foreign mgr (#83855)Brian Coca2024-11-123-3/+57
| | | | | | | * package_facts fix empty packages on foreign mgr return the first package manager that provides output add tests with fake rpm on apt machines
* Fix runas become SYSTEM logic (#84280)Jordan Borean2024-11-123-35/+123
| | | | | | | | Fixes the logic when attempting to become the SYSTEM user using the runas plugin. It was incorrectly assumed that calling LogonUser with the SYSTEM username would produce a new token with all the privileges but instead it creates a copy of the existing token. This reverts the logic back to the original process and adds in new logic to avoid any tokens that are restricted from creating new processes.
* ansible-test - align 2025 connection defaults to CI matrix (#84291)Jordan Borean2024-11-111-1/+1
|
* Increase scope of mypy sanity test (#84288)Matt Clay2024-11-0916-170/+104
| | | | | * Increase scope of mypy sanity test * Fix issues reported by mypy
* Add support for Windows Server 2025 (#84285)Jordan Borean2024-11-084-1/+14
| | | Adds Windows Server 2025 to the testing matrix.
* command module, fix docs to reflect reality (#84191)Brian Coca2024-11-071-7/+6
| | | | | | | though the previous docs were the 'intended' outcome, the current behaviour has been active for a long time and should not be removed due to backward compatibility issues. One thing we can do going forward is deprecate substitution enabled by default.
* ansible-test - Replace FreeBSD 13.3 with 13.4 (#84236)Matt Clay2024-11-079-20/+20
| | | | | * ansible-test - Replace FreeBSD 13.3 with 13.4 * ansible-test - Fix typos in bootstrap.sh * Skip libfaketime on FreeBSD except FreeBSD 14
* remove ignore clauses for module uri (#83642)Alexei Znamensky2024-11-073-1/+3
| | | Co-authored-by: flowerysong <junk+github@flowerysong.com>
* user: create Buildroot subclass as alias to Busybox (#83666)Brandon Bennett2024-11-072-0/+8
| | | Fixes: #83665
* Add --flush-cache option to ansible-pull (#84211)Sloane Hertel2024-11-065-1/+18
|
* update ansible-galaxy resolvelib requirement to >= 0.5.3, < 2.0.0 (#84218)Sloane Hertel2024-11-065-9/+13
| | | | | | | * Update resolvelib upperbound to 2.0.0 Minor SemVer releases should not contain breaking changes * Test the latest minor release and reduce number of resolvelib versions tested for efficiency
* ansible-test - Fix interactive cmd traceback (#84264)Matt Clay2024-11-065-5/+43
|
* Fixed ipv6 pattern in parse_address (#84237)spyinx2024-11-053-2/+6
|
* Removed deprecated STRING_CONVERSION_ACTION (#84245)Abhijeet Kasurde2024-11-056-25/+3
| | | | | Fixes: #84220 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Python binary should not be python at first try for env-setup.fish (#84212)Daniel Gonçalves2024-11-051-15/+15
|
* Link to role argspec docs. Fixes #84164 (#84192)Matt Martz2024-11-051-1/+4
|
* test: fix check_required_by (#84153)Abhijeet Kasurde2024-11-022-34/+14
| | | | | | * Update the documentation for check_required_by * Fix return value for check_required_by (now returns empty list on success) Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Improvements for the create-bulk-issues.py script (#84235)Matt Clay2024-11-011-3/+35
| | | | | | | | | * Improve error handling for create-bulk-issues.py * Add support for setting assignee * Add example YAML to feature --help output. * Add additional help message for token issues.
* Remove encrypt unit tests for undocumented algorithms, which are disallowed ↵Sloane Hertel2024-11-011-7/+0
| | | | in 2.19. (#84219)
* encrypt: raise error on passing unsupported passlib hashtype (#84186)Abhijeet Kasurde2024-10-314-19/+8
| | | | | | * Raise an AnsibleFilterError when unsupported passlib hashtype is provided in do_encrypt. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Add --flush-cache option for ansible and ansible-console (#84149)anvitpusalkar2024-10-305-12/+23
| | | | | * Allow CLIs that accept inventory options to flush the inventory cache(s) and fact cache Fixes #83749
* Fix returning unreachable for looped tasks (#84049)Sloane Hertel2024-10-304-0/+52
| | | | | * Fix returning unreachable for looped tasks Add tests for ignore_unreachable and loop
* Add a test using ignore_errors as a variable (#84175)Sloane Hertel2024-10-294-2/+33
| | | * Add a regression test for https://github.com/ansible/ansible/issues/32384
* Remove deprecated pycompat24 and importlib (#84161)Abhijeet Kasurde2024-10-296-127/+8
| | | | | | | | | | | | | | | | | | | | | | | | | * Removed deprecated pycompat24 and importlib Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> * Make CI green Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> * Ignore basic.py Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> * Make CI green III Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> * Make CI green IV Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> --------- Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Change changelog type from bugfixes to removed_features (#84158)Abhijeet Kasurde2024-10-291-1/+1
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Remove deprecated plural form of collection path (#84156)Abhijeet Kasurde2024-10-293-10/+4
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Enable file module to disable diff_mode (#83700)Conner Crosby2024-10-256-0/+56
| | | | | Several tasks within the modification_time.yml and state_link.yml task lists have explicitly enabled diff_mode because these tests previously assumed a diff attribute would always be returned from the file module.
* docs: print deprecation collection name (#84126)Abhijeet Kasurde2024-10-255-3/+11
| | | | | | While showing the deprecation message, mention the collection name from which the module is removed. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Preserve `_ansible_no_log` from action result; fix `include_vars` to set ↵Matt Davis2024-10-2515-46/+157
| | | | | | | | | | | | | | | | properly (#84143) * fixes for CVE-2024-8775 * propagate truthy `_ansible_no_log` in action result (previously superseded by task-calculated value) * always mask entire `include_vars` action result if any file loaded had a false `show_content` flag (previously used only the flag value from the last file loaded) * update no_log tests for CVE-2024-8775 * include validation of _ansible_no_log preservation when set by actions * replace static values with dynamic for increased robustness to logging/display/callback changes (but still using grep counts :( ) * changelog * use ternary, coerce to bool explicitly
* user module avoid conflicts ssh pub key (#84165)Brian Coca2024-10-245-5/+132
| | | | Remove pub key if we are going to generate private fix tests for os X
* Remove deprecated compat.selector (#84155)Abhijeet Kasurde2024-10-234-66/+3
| | | | | * Removed files related to selector compat Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Fixed broken tests (#84088)Abhijeet Kasurde2024-10-186-90/+53
| | | | | | | * Add `match=` in pytest.raises * Remove redundant assert statements Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> Co-authored-by: Matt Clay <matt@mystile.com>
* test: Remove unreachable tests (#83696)Abhijeet Kasurde2024-10-181-147/+0
| | | | | | variable_manager unit tests are unreachable. These tests are already covered in integration tests. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Use open with context manager (#83337)Abhijeet Kasurde2024-10-1816-66/+43
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Trim `selinux_policytype` @ integration tests (#84136)Sviatoslav Sydorenko (Святослав Сидоренко)2024-10-181-1/+1
| | | | The shell command sometimes prints a trailing whitespace which breaks the tests on old RHELs. This patch is supposed to fix that.
* test: use password to generate random string instead of range (#84129)Colin Watson2024-10-171-1/+1
| | | | * Use password lookup instead of range Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
* Faster host removal from a handler (#84091)Martin Krizek2024-10-171-1/+7
| | | | | | In ``Handler.notify_host`` we ensure that ``Handler.notified_hosts`` can contain particular host at most once. Therefore for removing a host it should be faster to use ``list.remove`` which removes the first item in the list, as opposed to using list comprehension removing all such items.
* Remove configuration options that were moved to inventory plugins now that ↵Sloane Hertel2024-10-161-54/+0
| | | | ansible-config supports plugin types. (#84130)
* test for gathering FIPS facts (#83266)Abhijeet Kasurde2024-10-162-19/+21
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Use dict comprehension instead (#83680)Abhijeet Kasurde2024-10-161-5/+1
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>