summaryrefslogtreecommitdiff
path: root/changelogs
diff options
context:
space:
mode:
authorSam Doran <sdoran@redhat.com>2021-01-10 15:04:45 -0500
committerGitHub <noreply@github.com>2021-01-10 14:04:45 -0600
commitf7ac5ea8d62f16d427158e56d85c535e9922506c (patch)
tree2514d36b860684809342fd9c9bf6d05909ab8945 /changelogs
parent98eb810f7d3ccc6eb2a007e915ecdb88d9f2b218 (diff)
downloadansible-f7ac5ea8d62f16d427158e56d85c535e9922506c.tar.gz
[stable-2.9] systemd - do not overwrite unit name when searching (#72985) (#73014)
* systemd - do not overwrite unit name when searching PR #72702 introduced a bug that changed the unit name when splitting it up for the purpose of searching for the unit. This only happens on unit file templates on systems that have a 5.8 or newer kernel and a version of systemd that does not contain a bugfix that causes systmed to fail to parse dbus. * Use facts rather than a manual probe to determine if systmed is present * Remove unnecessary block * Use vars files instead of set_fact * Add tests for using a templated unit file * Update changelog fragment * Use template to get correct path to sleep binary (cherry picked from commit 48803604cd3f8640ed8dd36357044a3fd51b6490)
Diffstat (limited to 'changelogs')
-rw-r--r--changelogs/fragments/systemd-preserve-full-unit-name.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/changelogs/fragments/systemd-preserve-full-unit-name.yml b/changelogs/fragments/systemd-preserve-full-unit-name.yml
new file mode 100644
index 0000000000..1af70a358d
--- /dev/null
+++ b/changelogs/fragments/systemd-preserve-full-unit-name.yml
@@ -0,0 +1,4 @@
+bugfixes:
+ - >
+ systemd - preserve the full unit name when using a templated service and
+ ``systemd`` failed to parse dbus due to a known bug in ``systemd`` (https://github.com/ansible/ansible/pull/72985)