Abhijeet Kasurde
bb138b1f6e
play_context: remove deprecated PlayContext.verbosity ( #82993 )
...
Fixes : #82945
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
8 months ago
Matt Clay
cd365057d3
Remove more Python 2.x compat code
8 months ago
Matt Clay
5187061939
ansible-test - Update base/default containers
8 months ago
Sloane Hertel
61e18572bb
Play - remove deprecated ROLE_CACHE in favor of role_cache ( #82979 )
8 months ago
Abhijeet Kasurde
92feda2e13
paramiko_ssh: remove deprecated ssh_*_args parameters ( #82988 )
...
* removed ssh_args parameter
* removed ssh_extra_args parameter
* removed ssh_common_args parameter
Fixes : #82939
Fixes : #82940
Fixes : #82941
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
8 months ago
Martin Krizek
14a2f6e2ab
Remove Python 2 traces from dnf/dnf5 modules ( #82985 )
8 months ago
Sloane Hertel
971c49b711
Remove deprecated vars keyword syntax as a list of dictionaries, it is now required to be a single dictionary ( #82980 )
...
Update unit test
8 months ago
Sloane Hertel
e03fcda6da
Remove deprecated configs for DEFAULT_FACT_PATH, DEFAULT_GATHER_SUBSET, and DEFAULT_GATHER_TIMEOUT ( #82978 )
...
Instead, set module_defaults at the play level, which will apply to the
gather_facts keyword as well as any
ansible.builtin.setup/ansible.builtin.gather_facts tasks.
- hosts: all
gather_facts: yes
module_defaults:
ansible.builtin.setup:
fact_path: /path/to/facts.d/
gather_subset: '!all,!min,local'
gather_timeout: 20
tasks:
# also applies to:
- ansible.builtin.setup:
- ansible.builtin.gather_facts:
If you wish to only apply these to the gather_facts keyword, set as play keywords.
8 months ago
Abhijeet Kasurde
52529f0b8e
plugins: remove deprecated features ( #82976 )
...
* Remove deprecated REQUIRE_WHITELIST
* Remove deprecated module_blacklist
Fixes : #82947
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
8 months ago
Martin Krizek
5f36fc9a46
to_nice_json: document the indent option ( #82973 )
...
Specifying indent as an option to `to_nice_json` has been possible in
contrary to what documentation states.
Follow-up to https://github.com/ansible/ansible/pull/82912
8 months ago
Jordan Borean
179bc1dabd
fetch - add error check on calculated dest ( #82970 )
...
Add explicit error when the calculated dest path for fetch becomes a
local directory. The existing behaviour will not be checked unlike when
the path did not end with a trailing slash.
8 months ago
Abhijeet Kasurde
ea55dddc6a
Remove deprecated 'loader' argument ( #82968 )
...
* remove deprecated 'loader' argument from listify_lookup_plugin_terms API
Fixes : #82949
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
8 months ago
Abhijeet Kasurde
208168ee4c
apt: add a note about extraneous quotes in package name ( #82960 )
...
* add a note for user to not to include extraneous single or double
quotes while specifying package name with a specific version.
Fixes : #82763
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
8 months ago
Matt Clay
1c17fe2d53
Drop Python 3.7 support ( #82982 )
8 months ago
Matt Martz
c12d42577e
Remove missed changelog fragments ( #82975 )
8 months ago
Matt Martz
76fe4e8a71
Bump devel to 2.18.0.dev0 ( #82934 )
...
* Bump devel to 2.18.0.dev0
* Add ignores for 2.18 deprecations
8 months ago
Sloane Hertel
85d8673860
Follow up to #82933 - remove platforms from templates ( #82961 )
8 months ago
Brian Coca
4bc6ffb2aa
Eaiser package mgr overrides ( #82629 )
...
Added variable to override auto detection
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Matt Martz <matt@sivel.net>
8 months ago
Sloane Hertel
4bddbe69d5
Fix traceback inheriting from NetworkConnectionBase and add integration tests ( #82954 )
...
Co-authored-by: Jeroen van Bemmel <jvb127@gmail.com>
8 months ago
Sloane Hertel
478e139195
remove nonexistent url from role templates ( #82933 )
...
* Remove obsolete v1 link for role platforms from the role templates
* Delete platforms block entirely
8 months ago
Abhijeet Kasurde
bcaae4c435
systemd_service: Update docs regarding required_* ( #82917 )
...
* Update the documentation regarding required_one_of and required_by
in systemd_service
Fixes : #82914
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
8 months ago
Abhijeet Kasurde
21a987b8b6
connection: update test coverage for SSH connection plugin ( #82916 )
...
* connection: update test coverage for SSH connection plugin
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
8 months ago
Matt Clay
9e08f78bd3
ansible-test - Update base/default containers ( #82952 )
8 months ago
Matt Clay
31901d23e7
ansible-test - Remove FreeBSD 13.2 ( #82951 )
8 months ago
Abhijeet Kasurde
8280fbc776
ansible-test - Remove Alpine 3.18 ( #82116 )
...
Co-authored-by: Matt Clay <matt@mystile.com>
8 months ago
Sloane Hertel
b3d8cdde5d
fix handling allow_duplicates with the role cache ( #82691 )
...
allow_duplicates is not part of the role uniqueness, so the value on the cached role may not match the current role.
* remove the allow_duplicates check from Role.has_run() which operates on the deduplicated role
* check the current role's allow_duplicates value in the strategy
Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
8 months ago
Brian Coca
8704b9fc29
centralize and complete the internal static vars ( #82872 )
...
* centralize and complete the internal static vars
These vars are internal and should not be overridden nor templated
from inventory nor hostvars.
8 months ago
mansoor
e3f4fe4fb9
ansible-test - Remove macos/13.2 remote from `ansible-test`
...
Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com>
8 months ago
Brian Coca
5c804cbf6f
ssh docs fixes ( #82902 )
8 months ago
Brian Coca
fde206499d
async support check mode ( #82901 )
...
Allow async tasks to run in check mode
Add check_mode support to async_status
Add tests, also for 'hidden' async mode in gather_facts/parallel
8 months ago
Sloane Hertel
b639bd1fd4
Allow "role_name : " prefix for notifying handler listen topics ( #82854 )
...
* Allow role name prefix for handler task listen topics
For example,
- name: handler name
debug:
listen: topic1
can be notified using `topic1`, `role : topic1` if the handler is in a
standalone or collection role, and `ns.col.role: topic1` if the role is
in a collection, the same way handler names work.
changelog
* fix changelog and tests
8 months ago
Abhijeet Kasurde
8fec1575e6
apt: handle options while installing python3-apt ( #82913 )
...
* apt: handle options while installing python3-apt
* While installing python3-apt library, honor parameter
such as install_recommends and dpkg_options
Fixes : #40608
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Review changes
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
---------
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
8 months ago
Jon
a1b6e3a258
Document sort_keys option in to_nice_json() filter ( #82912 )
...
Added by https://github.com/ansible/ansible/pull/52341 .
8 months ago
snipfoo
5f4e332e37
Fix condition for unquoting configuration strings from ini files ( #82388 )
...
* Add prefix to `origin` when configuration variables come from ini files
Fixes ansible#82387
This change was suggested by @bcoca in
https://github.com/ansible/ansible/pull/82388#discussion_r1424235728 and
https://github.com/ansible/ansible/pull/82388#discussion_r1424249732
When configuration variables come from an ini file, their `origin` is
now set to `ini: <file>`. Similarly, once supported, YAML configuration
files will have their `origin` as `yaml: <file>`.
Consequently, since unquoting configuration strings should happen if and
only if they come from an ini file, this condition boils down to testing
whether their `origin` starts with `ini:`.
* Do not add prefix to `origin` but explicitly pass `origin_ftype`
So as not to rely on a specific format of the `origin` string,
as suggested by @sivel in
https://github.com/ansible/ansible/pull/82388#issuecomment-1881714871
8 months ago
Abhijeet Kasurde
a870e7d0c6
Bump bundled distro version to 1.8.0 ( #81765 )
...
* Bump bundled distro version to 1.8.0
* Bump bundled distro version from to 1.8.0 from 1.6.0
Fixes : #81713
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Remove sanity entries
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
---------
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
8 months ago
Abhijeet Kasurde
d86ad77d6f
Remove deprecated scp_if_ssh from SSH connection plugin ( #82072 )
...
* removed deprecated scp_if_ssh feature from SSH connection
plugin
Fixes : #81715
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
8 months ago
Abhijeet Kasurde
b8b12c4be3
Update sanity requirements ( #82296 )
...
* Update sanity requirements
* Drop Python 3.7 for mypy
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
9 months ago
Matt Clay
ca168eb367
ansible-test - Fix Alpine libexpat bootstrapping
9 months ago
Brian Coca
ad0ec47fe9
first_found lookup; minor fixes ( #82836 )
...
Always process options no matter the combination
return a full normalized path (symlinks still not followed, should be specific option in future)
9 months ago
Matt Clay
b4d67adfda
ansible-test - Update distro containers to 7.1.0
9 months ago
Matt Clay
a1ad7100df
ansible-test - Handle externally managed Python ( #82883 )
...
Remove EXTERNALLY-MANAGED marker in ansible-test managed environments
Additional changes:
- Test the Alpine 3.19 container
- Stop testing Alpine 3.18 container and remote
- Add missing changelog entry the Alpine 3.19 container
9 months ago
Abhijeet Kasurde
73701004b0
ansible-test - Add alpine 3.19 ( #82115 )
9 months ago
Felix Fontein
c0821346fc
Do not mangle plugin names in collections that start with an underscore. ( #82574 )
9 months ago
Felix Fontein
11d69e065f
ansible-doc: restore role attributes ( #82678 )
...
* Restore role attributes.
* Add a deprecation warning for role argument specs containing attributes
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: s-hertel <19572925+s-hertel@users.noreply.github.com>
Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
9 months ago
Matt Clay
31bbc8334e
Update container test cgroup handling
...
When the host uses cgroup v2 and does not use systemd,
skip container scenarios which are unsupported.
9 months ago
Matt Clay
a192193c55
Limit Alpine 3.18 test hacks to that version
9 months ago
Brian Coca
ddae41759c
Add FreeBSD 13.3 and 14.0 to ansible-test ( #82530 )
...
Co-authored-by: Matt Clay <matt@mystile.com>
9 months ago
Abhijeet Kasurde
8eabeefa63
mypy: update code required to bump sanity requirements
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
9 months ago
Abhijeet Kasurde
aecffcb896
pylint: update for use-yield-from
...
* With Pylint 3.1.0, use-yield-from check is enabled
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
9 months ago
Brian Coca
481d8bdc1e
Unarchive get zipinfo on more OS/distros ( #82873 )
...
Not all implementations use -l as default for -Z on unzip
9 months ago