Brian Coca
b7e948e623
filter/test plugin listing, fix bug on file sorting ( #79591 )
...
* filter/test plugin listing, fix bug on file sorting
avoid legacy/builtin special casing for 'all'
2 years ago
Matt Clay
75b60b17ee
ansible-test - Support RSA SHA-1 for SSH clients.
2 years ago
Matt Clay
dcc08eec35
ansible-test - Fix target PyPI proxy config.
2 years ago
Martin Krizek
60f76436c1
Simplify AnsibleJ2Vars by using ChainMap for vars ( #78713 )
...
Co-authored-by: Matt Martz <matt@sivel.net>
2 years ago
Martin Krizek
0a12d8a5bc
ansible-test - fix warning to include image name ( #79560 )
2 years ago
Sloane Hertel
11e43e9d6e
Set locale for python apt ( #79546 )
...
* set locale to get_best_parsable_locale for the python-apt API
* add a test case
* add changelog
* remove test that tests nothing
2 years ago
Matt Davis
1424484be0
Prevent stdio deadlock in forked children ( #79522 )
...
* background threads writing to stdout/stderr can cause children to deadlock if a thread in the parent holds the internal lock on the BufferedWriter wrapper
* prevent writes to std handles during fork by monkeypatching stdout/stderr during display startup to require a mutex lock with fork(); this ensures no background threads can hold the lock during a fork operation
* add integration test that fails reliably on Linux without this fix
2 years ago
Matt Clay
80d2f8da02
ansible-test - Fix container detection. ( #79530 )
2 years ago
Brian Coca
5b51b560d0
Removed sorting to preserve original order ( #74839 )
...
updated tests to reflect new order
2 years ago
Matt Martz
1998521e2d
Always create new role ( #78661 )
...
Don't use role cache for determining whether to create a new instance of role
2 years ago
Matt Clay
f9715f436c
ansible-test - Avoid direct use of `errno`.
...
Error handling on Python 3.x no longer requires the use of `errno` to identify specific errors.
2 years ago
Matt Clay
cda16cc5e9
ansible-test - Improve container management. ( #78550 )
...
See changelogs/fragments/ansible-test-container-management.yml for details.
2 years ago
Martin Krizek
3bda4eae6f
Fix repr(Task) to check action when testing for a meta task ( #79464 )
...
Fixes #79459
2 years ago
Gaudenz Steinlin
c33a782a9c
Fix password lookup rewrites file when using encrypt ( #79431 )
...
* Remove unused mock from test_password_already_created_encrypt
The _get_paths mock is never used in the
test_password_already_created_encrypt test case.
* Add test to assert the password file is not rewritten
If the password file already contains the salt and the hasing algorithm
does not use the ident parameter, the password lookup should not write
to the password file.
* Fix "changed" if using "encrypt" in password lookup
When using the "encrypt" parameter to the password lookup without the
ident parameter, the password file was always marked as "changed". This
caused the file to be rewritten with the same content. This is fixed by
only marking the file as changed, if an "ident" value needs to be added
to the file.
Fixes #79430 .
Add changelog entry
2 years ago
sbettid
3936b5c471
Fix file touch check mode result ( #79360 ) ( #79422 )
...
Fixes #79360
2 years ago
Maxwell G
ab76916b14
galaxy: Add license_file to manifest directives ( #79420 )
...
* galaxy: Add license_file to manifest directives
* ag collection build: Test license handling
This adds tests to ensure that
- REUSE licensing files: .reuse/dep5, LICENSES/*, anyfile.license
- galaxy.yml license_file
are always included in the manifest.
2 years ago
Brian Coca
5f3a6b78db
local connection: avoid tb when running in container with invalid user ( #79414 )
...
* local connection: avoid tb when running in container with invalid user
* clog
* cannot use uid, leave empty and ~/ will resolve itself
* get back to what it did
2 years ago
Matt Clay
38fe34244c
ansible-test - Fix completion error in Python 3.11.
2 years ago
Christian Loos
f79a54ae22
Update vendored distro ( #79227 )
...
Commit bb35d41
in branch python2.7-support from 2022-10-10:
https://github.com/python-distro/distro/commit/bb35d41
2 years ago
Brian Coca
505b29b2a9
more strftime docs ( #79417 )
...
* more strftime docs
fixes #79397
Co-authored-by: Matt Martz <matt@sivel.net>
Co-authored-by: Don Naro <dnaro@redhat.com>
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
2 years ago
Wong Hoi Sing Edison
b148fd8dd7
ansible-galaxy - support ``resolvelib >= 0.5.3, < 0.10.0`` ( #79399 )
...
* Upgrade `resolvelib >= 0.5.3, < 0.10.0`
https://pypi.org/project/resolvelib/0.9.0/ released on 2022-11-17:
* https://github.com/sarugaku/resolvelib/blob/master/CHANGELOG.rst#090-2022-11-17
* https://github.com/sarugaku/resolvelib/releases/tag/0.9.0
Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
2 years ago
Matt Martz
942bcf6e7a
Add manifest includes for reuse licenses ( #79403 )
...
* Add includes for reuse licenses
* Add additional exludes to follow REJECT_EXTS
* clog frag
2 years ago
Matt Martz
d925ece764
Allow pip like version syntax for installing collections ( #79405 )
2 years ago
Rabi Mishra
6059116a64
Replace _valid_attrs with fattributes ( #79376 )
...
It was missed in one place it seems.
2 years ago
Felix Fontein
1705ec98cd
ansible-doc and validate-modules: remove underscore deprecation handling for collections ( #79362 )
...
* Remove underscore deprecation handling for collections.
* Also consider ansible.legacy.
2 years ago
Brian Coca
3448fcabc5
file lookup now works with general lookup error framework ( #79339 )
...
* file lookup now works with general lookup error framework
2 years ago
Tom Page
d72326b6af
Allow force deletion of group ( #78172 )
...
* Allow force deletion of group
* Update version_added
Co-authored-by: Jordan Borean <jborean93@gmail.com>
2 years ago
Felix Fontein
e0118d9d03
The attribute was renamed to 'action' and the extra data was not used anymore. ( #79317 )
2 years ago
Sviatoslav Sydorenko
f3be331c9c
Delete a bad PR #79263 change note ( #79295 )
2 years ago
Matt Clay
938c0fa944
ansible-test - Fix and update documentation links.
2 years ago
inifares23lab
e2450d4886
added --allow-change-held-packages for apt remove ( #78203 )
...
* added --allow-change-held-packages for apt remove
* add tests for apt remove (allow_change_held_packages=yes)
* add changelog for apt remove (allow-change-held-packages=yes)
* update tests for apt remove (allow_change_held_packages=yes)
2 years ago
Jordan Borean
698da30c1e
ansible-test - Update test container to 7.4.0 ( #79281 )
2 years ago
Jordan Borean
4ad02dc6e3
ansible-test - Update PSScriptAnalyzer to 1.21.0
2 years ago
Felix Fontein
6e379e5d65
validate-modules: do not treat falsy non-`False` defaults as `None` ( #79267 )
...
* Do not treat falsy non-False defaults as None.
* Fix various instances of this in modules.
* Add changelog fragment.
2 years ago
Sviatoslav Sydorenko
6674c43edd
Log `runme.sh` execution in integration tests ( #79263 )
...
* Log `runme.sh` execution in integration tests
This patch adds `set -x` where it's missing in the integration tests.
It also enables `pipefail` in `runme.sh` scripts that use pipes.
* Add a change note for PR #79263
2 years ago
Brian Coca
0f18ddca9f
mention acl in permissions errors ( #79209 )
...
as chmod/mode is not the only thing we attempt and Ubuntu not shipping acl
in newer versions can lead to some confusion
fixes #79146
2 years ago
Brian Coca
aaab0791d9
File lookup handle missing file more gracefully ( #79230 )
...
previously it would have a 2nd tb due to bad error raising
also remove superfluous warning
2 years ago
Matt Clay
d55423f5a4
ansible-test - Update default container.
2 years ago
Matt Clay
4fb5240af2
ansible-test - Update base and default containers.
2 years ago
Sloane Hertel
da3a7618ba
give a warning when no roles match the search instead of returning rc 1 ( #79195 )
...
* give a warning when no roles match the search instead of returning rc 1
* porting guide note
* Update docs/docsite/rst/porting_guides/porting_guide_core_2.15.rst
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
2 years ago
Matt Clay
645b6b8581
ansible-test - Fix pylint support on Python 3.11.
2 years ago
Sviatoslav Sydorenko
a76bbb18a5
Restrict `wheel` below v0.38.0 under Pythons < 3.7 ( #79187 )
...
* Restrict `wheel` below v0.38.0 under Pythons < 3.7
* Add a change note for PR #79187
* Update changelogs/fragments/79187--wheel-0.38.0.yml
Co-authored-by: Matt Clay <matt@mystile.com>
* Use constraints file when installing wheel.
Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
Brian Coca
f66016df0e
copy, avoid moving non temp remote 'non' files ( #79102 )
...
* copy, avoid moving non temp remote files that are not dirs/files
fix tests
2 years ago
Sloane Hertel
cb2e434dd2
ansible-galaxy install - fix unnecessary api check when installing a role from git repo ( #79090 )
...
* delay server api evaluation until a GalaxyRole needs to make an api call for info, list, and install
2 years ago
Matt Martz
f53dbf90ea
Don't assume column index for netmask and broadcast ( #79121 )
...
* Don't assume column index for netmask and broadcast. Fixes #79117
* fix typo
2 years ago
Martin Krizek
d34b578685
jinja2_native: preserve quotes in strings ( #79119 )
...
Fixes #79083
2 years ago
Sloane Hertel
f9cb679675
compile role with all parents in the dep chain ( #79079 )
...
fix inheriting from parents when role depth exceeds 3
Fixes #47023
2 years ago
mtoivo
cc2e7501db
Disable IP address lookups in iptables -module when listing ( #78828 )
...
* add --numeric to list
Co-authored-by: Mikko Toivola <mikko.toivola@insta.fi>
2 years ago
Matt Clay
14e7f05318
ansible-test - Update pylint to 2.15.4.
2 years ago
Martin Krizek
58637702b4
Cache field attributes list on the playbook classes ( #79091 )
...
* Cache field attributes list on the playbook classes
2 years ago