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/modules
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
..
__init__.py Re-adding the init py for modules 8 years ago
add_host.py Require `from __future__ import annotations` (#81902) 8 months ago
apt.py apt: add a note about extraneous quotes in package name (#82960) 2 months ago
apt_key.py Require `from __future__ import annotations` (#81902) 8 months ago
apt_repository.py Use of constant for 644 permission variable (#82762) 3 months ago
assemble.py Require `from __future__ import annotations` (#81902) 8 months ago
assert.py docs: improve readability & scope of docs for ansible.builtin.assert (#82256) 6 months ago
async_status.py async support check mode (#82901) 2 months ago
async_wrapper.py modules: remove PY2 compat (#81990) 5 months ago
blockinfile.py blockinfile: do not crash when filename has no path (#81638) 2 months ago
command.py Require `from __future__ import annotations` (#81902) 8 months ago
copy.py atomic_move - fix preserving extended acls (#82818) 3 months ago
cron.py Use of constant for 644 permission variable (#82762) 3 months ago
deb822_repository.py Use of constant for 644 permission variable (#82762) 3 months ago
debconf.py debconf: allow a list for value when vtype is multiselect (#82757) 3 months ago
debug.py Require `from __future__ import annotations` (#81902) 8 months ago
dnf.py modules/dnf: Substitute variables in DNF cache path (#80094) 2 months ago
dnf5.py Remove Python 2 traces from dnf/dnf5 modules (#82985) 2 months ago
dpkg_selections.py Require `from __future__ import annotations` (#81902) 8 months ago
expect.py expect docs - improve responses description (#82544) 5 months ago
fail.py Require `from __future__ import annotations` (#81902) 8 months ago
fetch.py Require `from __future__ import annotations` (#81902) 8 months ago
file.py Require `from __future__ import annotations` (#81902) 8 months ago
find.py find: do not fail on PermissionError (#82282) 4 months ago
gather_facts.py Require `from __future__ import annotations` (#81902) 8 months ago
get_url.py Require `from __future__ import annotations` (#81902) 8 months ago
getent.py Fix additional spelling errors in builtin modules (#82012) 7 months ago
git.py git: Rename option gpg_whitelist to gpg_allowlist (#82377) 3 months ago
group.py Require `from __future__ import annotations` (#81902) 8 months ago
group_by.py Require `from __future__ import annotations` (#81902) 8 months ago
hostname.py modules: remove PY2 compat (#81990) 5 months ago
import_playbook.py Fix broken docs RST reference. (#82286) 6 months ago
import_role.py Fix broken docs RST reference. (#82286) 6 months ago
import_tasks.py Fix broken docs RST reference. (#82286) 6 months ago
include_role.py Fix broken docs RST reference. (#82286) 6 months ago
include_tasks.py Fix broken docs RST reference. (#82286) 6 months ago
include_vars.py Require `from __future__ import annotations` (#81902) 8 months ago
iptables.py iptables: added choices in match_set_flags option (#82641) 4 months ago
known_hosts.py Update known_hosts module to better handle @cert-authority keys (#70340) 6 months ago
lineinfile.py lineinfile, remove incorrect/unused 'others' option (#82436) 5 months ago
meta.py Document no until support for meta (#82795) 3 months ago
package.py Eaiser package mgr overrides (#82629) 2 months ago
package_facts.py Require `from __future__ import annotations` (#81902) 8 months ago
pause.py Require `from __future__ import annotations` (#81902) 8 months ago
ping.py Require `from __future__ import annotations` (#81902) 8 months ago
pip.py modules: remove PY2 compat (#81990) 5 months ago
raw.py Require `from __future__ import annotations` (#81902) 8 months ago
reboot.py Require `from __future__ import annotations` (#81902) 8 months ago
replace.py Improve documentation for replace module (#82756) 3 months ago
rpm_key.py Require `from __future__ import annotations` (#81902) 8 months ago
script.py Require `from __future__ import annotations` (#81902) 8 months ago
service.py Consolidate systemd detection logic (#81809) 7 months ago
service_facts.py Consolidate systemd detection logic (#81809) 7 months ago
set_fact.py Require `from __future__ import annotations` (#81902) 8 months ago
set_stats.py Require `from __future__ import annotations` (#81902) 8 months ago
setup.py Require `from __future__ import annotations` (#81902) 8 months ago
shell.py Require `from __future__ import annotations` (#81902) 8 months ago
slurp.py Require `from __future__ import annotations` (#81902) 8 months ago
stat.py Require `from __future__ import annotations` (#81902) 8 months ago
subversion.py Replace Unicode no-break spaces with ASCII spaces 5 months ago
systemd.py rename systemd module to services only (#77644) 2 years ago
systemd_service.py Extend systemctl is-enabled check to handle "enabled-runtime" too. (#77754) 2 months ago
sysvinit.py Restart a Service with Sleep Between Stop and Start (#82210) 7 months ago
tempfile.py Create prefix of file using ansible.builtin.tempfile (#82209) 7 months ago
template.py docs(template): use unambiguous syntax for mode (#82079) 7 months ago
unarchive.py Remove more Python 2.x compat code 2 months ago
uri.py uri: Handle the "force" parameter properly (#82187) 4 months ago
user.py Issue #80267: Remove user not found warning (#80291) 6 months ago
validate_argument_spec.py validate_argument_spec: fixed example syntax (#82534) 5 months ago
wait_for.py wait_for, fallback to read for non mmapable files (#82064) 7 months ago
wait_for_connection.py Require `from __future__ import annotations` (#81902) 8 months ago
yum_repository.py Fix additional spelling errors in builtin modules (#82012) 7 months ago