Matt Clay
c75624fbdc
ansible-test - Enable shellcheck SC2164
10 months ago
Matt Clay
3c432fea43
ansible-test - Update base/default test containers
10 months ago
Brian Coca
29b2405b84
Revert "Fix older external connection plugins without _sub_plugin declaration ( #79372 )" ( #82473 )
...
This reverts commit ef1e01aa8b
.
broken tests
10 months ago
J vanBemmel
ef1e01aa8b
Fix older external connection plugins without _sub_plugin declaration ( #79372 )
...
fixes https://github.com/ansible/ansible/issues/79371
* Check for sub=={} too
* Add a test case for older plugins that do not define '_sub_plugin'
* Add test for legacy plugins
10 months ago
Brian Coca
55065c0042
Role fixes ( #82339 )
...
* Various fixes to roles
- static property is now properly set
- role_names and other magic vars now have full list
- role public/private var loading is now done when adding to play.roles instead of on each var query
- added tests
Co-authored-by: Felix Fontein <felix@fontein.de>
10 months ago
Brian Coca
4479c9df13
Fix plugin set option ( #82300 )
...
* plugin config, ensure set_option correctly casts
until now we relied on plugin author getting the right type, now
the config system itself will process as it would for set_options
10 months ago
Mark Chappell
5346009d2c
ansible-test - Allow multiple documents in the YAML stream for EXAMPLES ( #82355 )
...
* Allow multiple documents in the YAML stream for EXAMPLES.
* Add integration test
* linting
10 months ago
snipfoo
8328153121
Run all handlers with the same `listen` topic when notified from another handler ( #82364 )
...
Fixes #82363
10 months ago
Sloane Hertel
fe81164fe5
ansible-galaxy - fix exit code for failed role import ( #82193 )
11 months ago
Abhijeet Kasurde
7f2ad7eea6
assemble: fixed missing parameter error ( #82360 )
...
* content is an optional parameter for _get_diff_data API
Fixes : #82359
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
11 months ago
Brian Coca
a9919dd7f6
lookups, make file searching use better is_role ( #82290 )
...
* lookups, make file searching use better is_role
The dwim function will internally try by detecting tasks/main['','.yml','.yaml]
but this is far from optimial, the existince of role path in vars is much better
indicator that we can use to pass a hint
* updated test to avoid main.yml
11 months ago
Danny Luwel
9b002d2e63
check if there attributes to set ( #78707 )
...
Fixes : #76727
11 months ago
Brian Coca
6ebefaceb6
Better errors for delegate_to ( #82319 )
...
Handle empty result of templating
Also skip work when we omit
11 months ago
Sloane Hertel
3a42a00368
Targeted fix for installing roles with symlinks containing '..' ( #82165 )
...
Set the tarfile attribute to a normalized value from unfrackpath instead
of validating path parts and omiting potentially invald parts
Allow tarfile paths/links containing '..', '$', '~' as long as the
normalized realpath is in the tarfile's role directory
11 months ago
Brian Coca
1dd0d6fad7
remote log info ( #81711 )
...
Both posix and powershell avenues updated to allow for customized string logging on remote
Co-authored-by: Jordan Borean <jborean93@gmail.com>
11 months ago
Matt Clay
4208bdbbcd
ansible-test - Update nios-test-container to 3.0.0
11 months ago
Brian Coca
e80507af32
fact_gathering improve linux thread counts ( #82261 )
...
don't use `//` aka `floor()` as some architectures show counts of 1.9 threads per CPU and market as 2 per CPU, `round()` will be closer to that.
11 months ago
Abhijeet Kasurde
265f5e724c
apt_repository: Do not convert symlink repo to a normal file ( #82271 )
...
* apt_repository: Do not convert symlink repo to a normal file
* module manually writes to repo files. If the file is a symlink
module used to re-write and convert a symlink to a normal file.
This fix tracks the symlink and keeps the changes intact.
Fixes : #49809
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
11 months ago
Martin Krizek
afd45aca6a
ansible-test - remove rhel 9.2 test remote ( #82211 )
...
Fixes #82024
11 months ago
Sebbo94BY
e0bf76e3db
Issue #80267 : Remove user not found warning ( #80291 )
...
Co-authored-by: Sebi94nbg <sebastian.kraetzig@4g-server.eu>
11 months ago
Martin Krizek
d664f13b4a
Allow include_tasks handlers for searching role subdirs ( #82248 )
...
Fixes #82241
11 months ago
Chris Francy
a4b00793be
Update known_hosts module to better handle @cert-authority keys ( #70340 )
...
Signed-off-by: Chris Francy <zoredache@gmail.com>
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
11 months ago
Gods
7dde4901d4
unarchive: support 8 character permission strings ( #81705 )
11 months ago
Abhijeet Kasurde
ce9d268ab8
unarchive: force unarchive if the symlink target changes ( #82253 )
...
Fixes : #30420
Original PR from nrwahl2 (https://github.com/ansible/ansible/pull/30463 )
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
11 months ago
Herman van Rink
d6a8df3218
csvfile - add a keycol parameter to specify in which column to search. ( #82242 )
11 months ago
Abhijeet Kasurde
fbdb666411
ansible-test: Added Fedora 39 ( #82218 )
...
* Fedora 39 remote
* Fedora 39 container
Fixes : #82018
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
11 months ago
Abhijeet Kasurde
8fd1aa0d2e
syslog: Handle ValueError raised while sending logs to syslog ( #82225 )
...
* ValueError exception is raised when Null Character is sent
to syslog.syslog with Python 3.12.
* Handle this error gracefully instead of stacktrace
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
11 months ago
Brian Coca
8b102dca4a
wait_for, fallback to read for non mmapable files ( #82064 )
...
* also handle oserror, added debug jic
11 months ago
Brian Coca
6e448edc63
no_log avoid masking booleans ( #82217 )
...
* no_log avoid masking booleans
* clog
* fix issues
11 months ago
Matt Martz
f42984eeb3
Fix ManifestControl dataclass to work with future annotations ( #82215 )
...
* Fix ManifestControl dataclass to work with future annotations
* Add tests
11 months ago
Brian Coca
3d9e5c8b9d
fix pc misuse ( #82157 )
...
use the more up to date 'task' as play_context only has the 'initial' values.
11 months ago
Brian Coca
e2d108db2b
log verbosity ( #81692 )
...
Allow users to adjust verbosity to logs at same or higher level than to callback/screen
Co-authored-by: Matt Clay <matt@mystile.com>
11 months ago
Brian Coca
8825e60add
ansible-pull: expand destinantion directoy to avoid purgin in / ( #82030 )
...
* expand destinantion directoy to avoid purgin in /
bad things could happen and help alone is not enough
11 months ago
Martin Krizek
0bab08ee33
ansible-test - Add RHEL 9.3 support ( #82178 )
...
Fixes #82020
11 months ago
Brian Coca
4a84a9b3db
copy keep suffix on temp file for validation ( #82158 )
...
Also updated test to require suffix
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
11 months ago
Martin Krizek
a8b6ef7e7c
flush_handlers: handle a failure in a nested block with force_handlers ( #81572 )
...
Fixes #81532
ci_complete
11 months ago
Dellucifer
f2b5c33349
fixed typos in the documentation ( #82077 )
12 months ago
Matt Clay
9dd3eafa14
ansible-test - Use pylint unidiomatic-typecheck
...
This replaces the regex based check previously used within the validate-modules sanity test.
NOTE: The pylint check overlaps with a similar check for pep8.
Both are used, since the pep8 based check is more nuanced than the one in pylint.
For example, allowing `is` checks, but not `==` comparisons.
If the pylint check is ignored, the pep8 check would still be relevant.
12 months ago
Abhijeet Kasurde
40baf5eace
iptables - set jump to DSCP when set_dscp_mark or set_dscp_mark_class is set ( #82145 )
...
set_dscp_mark and set_dscp_mark_class is only valid when jump is set to
DSCP.
Fixes : #77077
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
12 months ago
Martin Krizek
7538668731
Check strict before failing to respect skip_broken ( #80795 )
...
Fixes #80590
12 months ago
Matt Clay
90203b841a
Use functools.update_wrapper instead of a copy
12 months ago
JustinWayland
dec9eeb2e5
Remove create_new_password parameter in CLI.build_vault_ids ( #82066 )
...
* Remove unused argument in call to build_vault_ids
* Remove obsolete build_vault_ids tests
* Change tests to account for argument removal
* Remove redundant test
12 months ago
Brian Coca
20a54eb236
restore role param precedence ( #82106 )
...
* add test for setfact/param override
12 months ago
Martin Krizek
5ac62473b0
dnf: properly set gpg options on repos ( #80777 )
...
Fixes #80110
12 months ago
Matt Clay
36d6860d80
ansible-test - Remove no-main-display sanity test
12 months ago
Matt Clay
6e15fb0ebf
ansible-test - Removed no-basestring sanity test
12 months ago
Matt Clay
c349b91af3
ansible-test - Removed no-dict-* sanity tests
12 months ago
Matt Clay
9765bb46f9
ansible-test - Remove no-unicode-literals test
12 months ago
Baptistech
f8de6caeec
Reboot - delete useless parameter async, not supported ( #80017 )
...
Co-authored-by: baptch <b.jean.ch@gmail.com>
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
1 year ago
Jordan Borean
b34f4a559f
Add support for TLS 1.3 Post Handshake Auth ( #82063 )
...
TLS 1.3 adds a different method it can use to request a client
certificate after the handshake but Python does not allow this by
default. This commit sets the attribute needed to enable this scenario
when using client certificates on Python 3.8+, 3.7.1+.
1 year ago