Matt Clay and GitHub
95e3af3e0f
ansible-test - Improve container network detection ( #84323 )
...
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.
2024-11-19 10:49:24 -08:00
Martin Krizek and GitHub
c99493eb3f
dnf5 - consolidate package resolving settings ( #84335 )
...
Fixes #84334
2024-11-19 18:00:35 +01:00
Martin Krizek and GitHub
a27a7a27d1
dnf5: fix is_installed check ( #84275 )
...
Fixes #84259
2024-11-19 09:32:04 +01:00
Sloane Hertel and GitHub
3e82ed307b
include_vars - fix including new hash variables when hash_behaviour is set to merge ( #84303 )
2024-11-14 13:50:14 -05:00
e14f9fe725
Sequence query fix ( #83758 )
...
Co-authored-by: flowerysong <junk+github@flowerysong.com >
2024-11-13 19:46:57 -08:00
Brian Coca and GitHub
c734ac2125
vars/varnames more examles more varied ( #84300 )
...
also ref each other in seealso as they will commonly be used toghether
2024-11-12 16:05:37 -05:00
Abhijeet Kasurde and GitHub
32eacecca9
Deprecated libvirt_lxc_noseclabel config ( #84287 )
...
* 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 >
2024-11-12 16:13:45 +01:00
Abhijeet Kasurde and GitHub
ca0810da85
Add tests for deprecations ( #84284 )
...
* Check for module deprecation
* Check for module option deprecation
* Check for plugin deprecation
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2024-11-12 16:09:39 +01:00
Brian Coca and GitHub
e404bc17f7
package_facts fix empty packages on foreign mgr ( #83855 )
...
* package_facts fix empty packages on foreign mgr
return the first package manager that provides output
add tests with fake rpm on apt machines
2024-11-12 08:36:26 -05:00
Jordan Borean and GitHub
3befdd3d15
Fix runas become SYSTEM logic ( #84280 )
...
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.
2024-11-12 09:16:22 +10:00
Jordan Borean and GitHub
52ecd3664a
ansible-test - align 2025 connection defaults to CI matrix ( #84291 )
2024-11-11 09:07:35 +10:00
Matt Clay and GitHub
9d249432c4
Increase scope of mypy sanity test ( #84288 )
...
* Increase scope of mypy sanity test
* Fix issues reported by mypy
2024-11-09 02:58:29 +00:00
Jordan Borean and GitHub
7501bbec20
Add support for Windows Server 2025 ( #84285 )
...
Adds Windows Server 2025 to the testing matrix.
2024-11-08 12:28:20 +10:00
Brian Coca and GitHub
bf48b538f8
command module, fix docs to reflect reality ( #84191 )
...
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.
2024-11-07 16:22:40 -05:00
Matt Clay and GitHub
a98801903d
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
2024-11-07 13:19:26 -08:00
1d61f2a4fd
remove ignore clauses for module uri ( #83642 )
...
Co-authored-by: flowerysong <junk+github@flowerysong.com >
2024-11-07 14:56:51 +00:00
Brandon Bennett and GitHub
31cde0ebd1
user: create Buildroot subclass as alias to Busybox ( #83666 )
...
Fixes : #83665
2024-11-07 14:45:32 +00:00
Sloane Hertel and GitHub
157ef04b1e
Add --flush-cache option to ansible-pull ( #84211 )
2024-11-06 11:40:15 -05:00
Sloane Hertel and GitHub
771f7ad29c
update ansible-galaxy resolvelib requirement to >= 0.5.3, < 2.0.0 ( #84218 )
...
* 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
2024-11-06 10:20:26 -05:00
Matt Clay and GitHub
68bfa37838
ansible-test - Fix interactive cmd traceback ( #84264 )
2024-11-05 23:50:34 +00:00
spyinx and GitHub
9cdd6e58b3
Fixed ipv6 pattern in parse_address ( #84237 )
2024-11-05 08:05:21 -08:00
Abhijeet Kasurde and GitHub
a99d66e6c7
Removed deprecated STRING_CONVERSION_ACTION ( #84245 )
...
Fixes : #84220
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2024-11-05 16:27:12 +01:00
Daniel Gonçalves and GitHub
49b22d4d6b
Python binary should not be python at first try for env-setup.fish ( #84212 )
2024-11-05 16:13:52 +01:00
Matt Martz and GitHub
abf6036bb2
Link to role argspec docs. Fixes #84164 ( #84192 )
2024-11-04 17:06:58 -06:00
Abhijeet Kasurde and GitHub
f92e99fd8f
test: fix check_required_by ( #84153 )
...
* 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 >
2024-11-02 10:36:45 -07:00
Matt Clay and GitHub
c49e94017a
Improvements for the create-bulk-issues.py script ( #84235 )
...
* 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.
2024-11-01 15:15:59 -07:00
Sloane Hertel and GitHub
32ae3ce117
Remove encrypt unit tests for undocumented algorithms, which are disallowed in 2.19. ( #84219 )
2024-11-01 13:21:24 -04:00
Abhijeet Kasurde and GitHub
8784469b4c
encrypt: raise error on passing unsupported passlib hashtype ( #84186 )
...
* Raise an AnsibleFilterError when unsupported passlib hashtype is
provided in do_encrypt.
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2024-10-31 15:27:37 +00:00
anvitpusalkar and GitHub
2c6b78f516
Add --flush-cache option for ansible and ansible-console ( #84149 )
...
* Allow CLIs that accept inventory options to flush the inventory cache(s) and fact cache
Fixes #83749
2024-10-30 14:59:01 -04:00
Sloane Hertel and GitHub
03acb22f99
Fix returning unreachable for looped tasks ( #84049 )
...
* Fix returning unreachable for looped tasks
Add tests for ignore_unreachable and loop
2024-10-30 10:35:23 -04:00
Sloane Hertel and GitHub
a3b58fb67c
Add a test using ignore_errors as a variable ( #84175 )
...
* Add a regression test for https://github.com/ansible/ansible/issues/32384
2024-10-29 16:32:17 +01:00
Abhijeet Kasurde and GitHub
3a40ba3b2c
Remove deprecated pycompat24 and importlib ( #84161 )
...
* 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 >
2024-10-29 16:14:01 +01:00
Abhijeet Kasurde and GitHub
1b46b5923e
Change changelog type from bugfixes to removed_features ( #84158 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2024-10-29 16:09:20 +01:00
Abhijeet Kasurde and GitHub
f29b46e438
Remove deprecated plural form of collection path ( #84156 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2024-10-29 16:07:20 +01:00
Conner Crosby and GitHub
d662a8d088
Enable file module to disable diff_mode ( #83700 )
...
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.
2024-10-25 18:32:11 +00:00
Abhijeet Kasurde and GitHub
ab1a8cb3b3
docs: print deprecation collection name ( #84126 )
...
While showing the deprecation message, mention the collection name
from which the module is removed.
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2024-10-25 11:20:11 -07:00
Matt Davis and GitHub
c9ac477e53
Preserve _ansible_no_log from action result; fix include_vars to set 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
2024-10-24 22:56:54 +00:00
Brian Coca and GitHub
11e4a6a722
user module avoid conflicts ssh pub key ( #84165 )
...
Remove pub key if we are going to generate private
fix tests for os X
2024-10-24 14:39:51 -04:00
Abhijeet Kasurde and GitHub
b1816880cb
Remove deprecated compat.selector ( #84155 )
...
* Removed files related to selector compat
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2024-10-23 14:54:40 +00:00
1e6ffc1d02
Fixed broken tests ( #84088 )
...
* 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 >
2024-10-18 14:11:33 -07:00
Abhijeet Kasurde and GitHub
1727bbecce
test: Remove unreachable tests ( #83696 )
...
variable_manager unit tests are unreachable. These tests
are already covered in integration tests.
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2024-10-18 12:23:40 -07:00
Abhijeet Kasurde and GitHub
53ceb74e84
Use open with context manager ( #83337 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2024-10-18 10:53:11 -07:00
Sviatoslav Sydorenko (Святослав Сидоренко) and GitHub
f7766cf843
Trim selinux_policytype @ integration tests ( #84136 )
...
The shell command sometimes prints a trailing whitespace which breaks
the tests on old RHELs. This patch is supposed to fix that.
2024-10-18 09:25:40 -07:00
c6e166319a
test: use password to generate random string instead of range ( #84129 )
...
* Use password lookup instead of range
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com >
2024-10-17 19:17:42 +00:00
Martin Krizek and GitHub
42e2f09b97
Faster host removal from a handler ( #84091 )
...
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.
2024-10-17 08:33:39 +02:00
Sloane Hertel and GitHub
4f6276d72d
Remove configuration options that were moved to inventory plugins now that ansible-config supports plugin types. ( #84130 )
2024-10-16 15:39:15 -04:00
Abhijeet Kasurde and GitHub
663f7f3b56
test for gathering FIPS facts ( #83266 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2024-10-16 12:35:12 -07:00
Abhijeet Kasurde and GitHub
279de623d0
Use dict comprehension instead ( #83680 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2024-10-16 12:33:07 -07:00
Abhijeet Kasurde and GitHub
671c797aa1
Remove unnecessary code ( #84085 )
...
* os.setsid does not return anything, so remove code which relying
on return value
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2024-10-15 07:59:01 -07:00
58cb8ca4fa
feat: checksum_algo param for find module ( #83014 )
...
Co-authored-by: shirann <shirannx@gmail.com >
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <webknjaz@redhat.com >
2024-10-11 11:02:39 -07:00