Matt Davis and Matt Davis
21f478e77b
Decouple SSH client verbosity from Ansible display ( #85224 )
...
* decouple SSH client verbosity from Ansible display
* remove failing false-coverage unit test
(cherry picked from commit b71d9aa4a5 )
2025-06-03 15:49:23 -07:00
Matt Davis and Matt Davis
40a675543f
fix from_yaml_all filter inconsistent None handling ( #85223 )
...
* fix from_yaml_all filter inconsistent None handling
* always returns empty list for None or empty string input
* deprecate non-string inputs for from_yaml and from_yaml_all
(cherry picked from commit 356bf336bd )
2025-06-03 15:49:23 -07:00
Harshvardhan Sharma and Matt Davis
fa2f1e4750
Improve SUSE distribution detection using VARIANT_ID with fallback ( #85152 )
...
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com >
(cherry picked from commit f05b1d1ccf )
2025-06-03 15:49:23 -07:00
Martin Krizek and Matt Davis
2adc8ae1cd
dnf5 - handle all specific libdnf5 exceptions ( #85175 )
...
Fixes #84634
(cherry picked from commit 99a3346de6 )
2025-06-03 15:49:23 -07:00
Martin Krizek and Matt Davis
6f7215ca36
dnf5 tests: do not remove attr ( #85218 )
...
On RHEL 10, the attr package is in the dependency tree of dnf itself
and cannot be removed.
(cherry picked from commit a0132fec0b )
2025-06-03 15:49:23 -07:00
Kimmo Suominen and Matt Davis
43b0155529
Recognize virtualization type correctly on Linode ( #85184 )
...
(cherry picked from commit 3b66150cc3 )
2025-06-03 15:49:23 -07:00
Abhijeet Kasurde and Matt Davis
2d800e1a4c
service: Remove py2 specific code ( #85191 )
...
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com >
(cherry picked from commit 068157618c )
2025-06-03 15:49:23 -07:00
Martin Krizek and Matt Davis
df60504b93
apt_repository: remove Python 2 support ( #85212 )
...
(cherry picked from commit f635a22d81 )
2025-06-03 15:49:23 -07:00
Jordan Borean and Matt Davis
abb1de2780
win coverage - Fix untrusted coverage collection ( #85197 )
...
Fixes the logic when running a module through App Control when the
module is not trusted to run in Full Language Mode. This ensures
coverage will still run as expected and that the trust verification only
happens in the wrappers that actually run/prepare the code.
Also expands on a comment to clarify why only that branch is set to set
the internal file encoding to UTF-8.
(cherry picked from commit 17cee7a982 )
2025-06-03 15:49:23 -07:00
Matt Clay and Matt Davis
457b40d659
Include message in captured tracebacks ( #85196 )
...
This matches the formatting of tracebacks from exceptions.
(cherry picked from commit 359173c006 )
2025-06-03 15:49:23 -07:00
Matt Clay and Matt Davis
3207e55ca2
display - Replace CRNL with NL ( #85194 )
...
(cherry picked from commit e226294855 )
2025-06-03 15:49:23 -07:00
Matt Clay and Matt Davis
424327c293
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 )
2025-06-03 15:49:23 -07:00
Martin Krizek and Matt Davis
cc0ef95ce8
csvfile lookup: remove Python 2 compat ( #85186 )
...
(cherry picked from commit c6a2e5ea75 )
2025-06-03 15:49:22 -07:00
Matt Clay and Matt Davis
8bbc43efd0
Limit SSH agent DSA testing to RHEL 9 ( #85193 )
...
(cherry picked from commit 6a1c24ca99 )
2025-06-03 15:49:22 -07:00
Jordan Borean and Matt Davis
880b584124
Add support for Windows App Control/WDAC ( #84898 )
...
* Add support for Windows App Control/WDAC
Adds preview support for Windows App Control, formerly known as WDAC.
This is a tech preview feature and is designed to test out improvements
needed in future versions of Ansible.
* Use psd1 and parse it through the Ast to avoid any unexpected execution results
* Add tests for various manifest permutations
* Ignore test shebang failure
* Apply suggestions from code review
Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com >
* Use more flexible test expectations
* Add type annotations for shell functions
---------
Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com >
(cherry picked from commit 75f7b2267d )
2025-06-03 15:49:22 -07:00
Matt Clay and Matt Davis
895af10b99
ansible-test - Improve deprecated checking type inference ( #85159 )
...
* ansible-test - Improve deprecated checking type inference
Also disabled the ``bad-super-call`` pylint rule due to false positives.
* Add type comment support
* Try without using register_transform
(cherry picked from commit e82be177cd )
2025-06-03 15:49:22 -07:00
Matt Clay and Matt Davis
638d711a72
ansible-test - Fix option filtering ( #85182 )
...
(cherry picked from commit feda0a5c6e )
2025-06-03 15:49:22 -07:00
Matt Clay and Matt Davis
1441817ffe
Remove unnecessary module shebang ( #85183 )
...
(cherry picked from commit 1e64707592 )
2025-06-03 15:49:22 -07:00
Matt Clay and Matt Davis
01e97d7f80
DTFIX recategorization and error/warning refactor ( #85181 )
...
Co-authored-by: Matt Davis <nitzmahone@redhat.com >
(cherry picked from commit 242bb9ebab )
2025-06-03 15:49:22 -07:00
Martin Krizek and Matt Davis
108f349e1d
Integration tests clean up ( #85130 )
...
* Integration tests clean up
* more
* we only test with Ubuntu 24.04 on the controller
(cherry picked from commit 40c919d7bd )
2025-06-03 15:49:22 -07:00
Matt Clay and Matt Davis
35a951b611
Expand scope of black sanity test ( #85169 )
...
(cherry picked from commit 97dd5f104c )
2025-06-03 15:49:22 -07:00
Matt Clay and Matt Davis
76fa45895d
Code formatting for .azure-pipelines/ ( #85166 )
...
(cherry picked from commit 14bf64ddf8 )
2025-06-03 15:49:22 -07:00
Lee Garrett and Matt Davis
1381fc30a3
Mark integration tests as needs/root ( #84487 )
...
For calling setup_test_user, which adds a user to the system (and thus requiring
root):
- become
- become_su
- become_sudo
- slurp
And also:
- apt, which installs/removes system packages
- deb822_repository, which adds/removes apt repos
- hardware_facts calls losetup, which requires root
- package_facts, which installs/removes system packages
Co-authored-by: Lee Garrett <lgarrett@rocketjump.eu >
(cherry picked from commit ebd022ee42 )
2025-06-03 15:49:22 -07:00
Matt Clay and Matt Davis
f771784853
Code formatting for packaging/cli-doc/ ( #85167 )
...
(cherry picked from commit 930ffd1a83 )
2025-06-03 15:49:22 -07:00
Matt Clay and Matt Davis
46cc5d6b90
Code formatting for packaging/release.py ( #85168 )
...
(cherry picked from commit ed0e78fd9c )
2025-06-03 15:49:22 -07:00
Matt Clay and Matt Davis
0ba6145aa8
Code formatting for test/sanity/code-smell/ ( #85165 )
...
(cherry picked from commit 460343510c )
2025-06-03 15:49:22 -07:00
Jordan Borean and Matt Davis
1bd8ed4437
Fix constructable inventory default keyed group ( #85002 )
...
Fix the logic for a constructable inventory `keyed_groups` entry to use
the `default_value` if the ``key` expression result is `None` or `omit`
and not just an empty string. This bug was introduced with the changes
in data tagging and goes back to the original behaviour.
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com >
(cherry picked from commit fe2d9e316a )
2025-06-03 15:49:22 -07:00
Matt Clay
33c3844daa
ansible-test - Update default containers ( #85161 )
...
(cherry picked from commit 7ac74ab591 )
2025-05-14 22:08:42 -07:00
Matt Clay
b6fad7bbb8
ansible-test - Update sanity requirements ( #85160 )
...
(cherry picked from commit 588410fe50 )
2025-05-14 22:08:42 -07:00
Matt Davis and Matt Clay
3a2248a992
recategorize pass over DTFIX-MERGE entries post b4 ( #85155 )
...
(cherry picked from commit f5a85493c1 )
2025-05-14 22:08:42 -07:00
Matt Clay
134c8ec093
Add missing cache plugin test scenarios ( #85154 )
...
(cherry picked from commit 567fda6906 )
2025-05-14 22:08:42 -07:00
Matt Davis and Matt Clay
fddda73042
ensure builtin tests always return bool ( #85149 )
...
* added unit test validation and coverage enforcement
Co-authored-by: Matt Clay <matt@mystile.com >
(cherry picked from commit e5476972da )
2025-05-14 22:08:42 -07:00
Matt Davis and Matt Clay
60ddb2954b
misc changelog and docstring cleanup ( #85148 )
...
* deferred listify_lookup_plugin_terms deprecation
Co-authored-by: Matt Clay <matt@mystile.com >
(cherry picked from commit 7be1359841 )
2025-05-14 22:08:42 -07:00
Matt Clay
b2699fade5
release.py - Remove email announcement support ( #85060 )
...
Also add missing git and run overloads.
(cherry picked from commit 93aa611435 )
2025-05-12 11:06:16 -07:00
Matt Clay and GitHub
5e0733288e
Update Ansible release version to v2.19.0b4.post0. ( #85137 )
2025-05-12 18:03:53 +00:00
Matt Clay and GitHub
731b4d0242
New release v2.19.0b4 ( #85133 )
v2.19.0b4
2025-05-12 10:20:45 -07:00
Matt Davis and Matt Clay
d6a8582da7
fix ensure_type to support vaulted values ( #85129 )
...
* restored parity with 2.18
Co-authored-by: Matt Clay <matt@mystile.com >
(cherry picked from commit 9a426fe303 )
2025-05-12 09:15:48 -07:00
Matt Davis and Matt Clay
204cdcee67
ensure that all config return values are Origin-tagged ( #85127 )
...
Co-authored-by: Matt Clay <matt@mystile.com >
(cherry picked from commit fc8a227647 )
2025-05-12 09:15:48 -07:00
Matt Davis and Matt Clay
df214f93a7
apply trust to declarative plugin config ( #85126 )
...
* trust strings in loaded doc fragments
* added tests
* added hard_fail_context test mechanism
Co-authored-by: Matt Clay <matt@mystile.com >
(cherry picked from commit 9efba4f972 )
2025-05-12 09:15:48 -07:00
Lorenzo Tanganelli and Matt Clay
27aca0abd3
facts: CloudStack KVM Hypervisor to Linux virtual fact ( #85117 )
...
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com >
(cherry picked from commit 8a4fb78988 )
2025-05-12 09:15:48 -07:00
Matt Clay
38ef2b8c25
ansible-test - Relax some deprecation checks ( #85122 )
...
(cherry picked from commit 7b69cf3266 )
2025-05-12 09:15:48 -07:00
Matt Clay
23f935eb0d
template module - render None as empty string ( #85121 )
...
* template module - render `None` as empty string
* Update changelogs/fragments/template-none.yml
Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com >
---------
Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com >
(cherry picked from commit 4fe9606530 )
2025-05-12 09:15:48 -07:00
Matt Davis and Matt Clay
9fff6d433d
Misc config type coercion fixes ( #85119 )
...
* remove dead config comment noise
* update `list` typed config defaults to be lists
* fix tag preservation/propagation in config
* numerous other ensure_type bugfixes
* 100% unit test coverage of ensure_type
* emit warnings on template_default failures
* fix unhandled exception in convert_bool on unhashable inputs
Co-authored-by: Matt Clay <matt@mystile.com >
---------
Co-authored-by: Matt Clay <matt@mystile.com >
(cherry picked from commit d33bedc48f )
2025-05-12 09:15:48 -07:00
j-dr3 and Matt Clay
e8d914e992
sysvinit: make examples consistent ( #85108 )
...
(cherry picked from commit dcc5dac184 )
2025-05-12 09:15:48 -07:00
omahs and Matt Clay
121871af86
Fix typos ( #85107 )
...
(cherry picked from commit 471c5229a7 )
2025-05-12 09:15:48 -07:00
Martin Krizek and Matt Davis
f70dbc15e5
Passing warnings to exit/fail_json is deprecated. ( #85109 )
...
(cherry picked from commit 8b9ddf5544 )
2025-05-07 11:08:16 -07:00
Matt Davis and Matt Davis
80af44d822
add fuzzy matching to package_data sanity ( #85103 )
...
* add fuzzy matching to package_data sanity
* relaxes exact directory matches for license files to allow setuptools > 72 to pass
* sanity
(cherry picked from commit 7e00053a30 )
2025-05-07 11:08:16 -07:00
Martin Krizek and Matt Davis
da59710961
dnf5: skip pkgs that don't satisfy bugfix/security when specified ( #85111 )
...
(cherry picked from commit 107842fd7d )
2025-05-07 11:08:16 -07:00
Matt Davis and GitHub
c83b70a04c
Update Ansible release version to v2.19.0b3.post0. ( #85102 )
2025-05-06 19:11:59 +00:00
Matt Davis and GitHub
c742fdc66c
New release v2.19.0b3 ( #85101 )
v2.19.0b3
2025-05-06 11:29:47 -07:00