ansible.posix/plugins/modules
Kevin Burke 736e846008 Replace deprecated module_utils imports before ansible-core 2.24 removal
ansible-core 2.20 deprecated `ansible.module_utils._text` and
`ansible.module_utils.common._collections_compat`. Both will be removed
in ansible-core 2.24.

Replace all occurrences across plugins, callbacks, and tests:

- `from ansible.module_utils._text import ...`
  → `from ansible.module_utils.common.text.converters import ...`

- `from ansible.module_utils.common._collections_compat import ...`
  → `from collections.abc import ...`

Also remove the now-unnecessary `pylint:ansible-bad-import-from` entries
from the sanity ignore list for the affected files, and add a unit test
that scans for these deprecated patterns to prevent regressions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 21:52:07 +09:00
..
__init__.py Initial commit 2020-03-09 13:15:28 +00:00
acl.py Replace deprecated module_utils imports before ansible-core 2.24 removal 2026-02-15 21:52:07 +09:00
at.py Apply suggestions from code review 2024-06-15 17:00:54 +12:00
authorized_key.py Replace deprecated module_utils imports before ansible-core 2.24 removal 2026-02-15 21:52:07 +09:00
firewalld.py Change type of icmp_block_inversion option from str to bool 2024-11-28 14:19:20 +09:00
firewalld_info.py Replace deprecated module_utils imports before ansible-core 2.24 removal 2026-02-15 21:52:07 +09:00
mount.py Replace deprecated module_utils imports before ansible-core 2.24 removal 2026-02-15 21:52:07 +09:00
patch.py Replace deprecated module_utils imports before ansible-core 2.24 removal 2026-02-15 21:52:07 +09:00
rhel_facts.py review modules docs 2024-06-15 17:00:54 +12:00
rhel_rpm_ostree.py Replace deprecated module_utils imports before ansible-core 2.24 removal 2026-02-15 21:52:07 +09:00
rpm_ostree_upgrade.py Replace deprecated module_utils imports before ansible-core 2.24 removal 2026-02-15 21:52:07 +09:00
seboolean.py Replace deprecated module_utils imports before ansible-core 2.24 removal 2026-02-15 21:52:07 +09:00
selinux.py review modules docs 2024-06-15 17:00:54 +12:00
synchronize.py Replace deprecated module_utils imports before ansible-core 2.24 removal 2026-02-15 21:52:07 +09:00
sysctl.py Replace deprecated module_utils imports before ansible-core 2.24 removal 2026-02-15 21:52:07 +09:00