You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/lib/ansible
David Greaves 3076478892
Extend systemctl is-enabled check to handle "enabled-runtime" too. (#77754)
In general the existence of a runtime-enabled unit should not prevent
a persistent enable being set.

Specifically this handles the case where there is an entry in fstab
for a mount point (which is retained to allow manual mount/umount to
take place) and yet a systemd mount unit needs to be deployed to
handle other unit options. There will be a generator-created unit file
which shows the unit as enabled-runtime and the persistent enable of
the mount unit will fail.

Additionally improve the comments and modify the code to use rsplit()
and the "in" notation since "systemctl is-enabled" is documented to
return specific values in the cases of interest.

---------

Signed-off-by: David Greaves <david@dgreaves.com>
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
2 months ago
..
_vendor Require `from __future__ import annotations` (#81902) 8 months ago
cli ansible-config: ensure we get templated default (#82974) 2 months ago
collections Require `from __future__ import annotations` (#81902) 8 months ago
compat Remove Python `< 3.5` `selectors` fallbacks (#81872) 8 months ago
config ansible-config: ensure we get templated default (#82974) 2 months ago
errors Require `from __future__ import annotations` (#81902) 8 months ago
executor Fix traceback inheriting from NetworkConnectionBase and add integration tests (#82954) 2 months ago
galaxy Follow up to #82933 - remove platforms from templates (#82961) 2 months ago
inventory Require `from __future__ import annotations` (#81902) 8 months ago
module_utils Drop Python 3.7 support (#82982) 2 months ago
modules Extend systemctl is-enabled check to handle "enabled-runtime" too. (#77754) 2 months ago
parsing Enable file cache for vaulted host_vars_files vars plugin (#81995) 3 months ago
playbook play_context: remove deprecated PlayContext.verbosity (#82993) 2 months ago
plugins paramiko_ssh: remove deprecated ssh_*_args parameters (#82988) 2 months ago
template Fix error when templating an unsafe string leading to a type error in Python (#82675) 3 months ago
utils Remove deprecated 'loader' argument (#82968) 2 months ago
vars plugins: remove deprecated features (#82976) 2 months ago
__init__.py Require `from __future__ import annotations` (#81902) 8 months ago
__main__.py Require `from __future__ import annotations` (#81902) 8 months ago
constants.py centralize and complete the internal static vars (#82872) 2 months ago
context.py Require `from __future__ import annotations` (#81902) 8 months ago
keyword_desc.yml Fix the strategy plugin description in keywords (#82113) 7 months ago
release.py Bump devel to 2.18.0.dev0 (#82934) 2 months ago