At the moment we don't restart services if systemd unit file is changed.
We knowingly prevent systemd_service role handlers to execute
by providing `state: started` as otherwise service will be restarted twice.
With that now we ensure that role handlers will also listen for systemd
unit changes.
Reviewed: https:/ /review. opendev. org/c/openstack /openstack- ansible- os_glance/ +/876328 /opendev. org/openstack/ openstack- ansible- os_glance/ commit/ f7c7e4864e899cd 2404cea3b084952 21e37f523d
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit f7c7e4864e899cd 2404cea3b084952 21e37f523d
Author: Dmitriy Rabotyagov <email address hidden>
Date: Fri Mar 3 13:59:06 2023 +0100
Ensure service is restarted on unit file changes
At the moment we don't restart services if systemd unit file is changed.
We knowingly prevent systemd_service role handlers to execute
by providing `state: started` as otherwise service will be restarted twice.
With that now we ensure that role handlers will also listen for systemd
unit changes.
Change-Id: I5a52c0de14ee3a 6215edb64dbc3bd 48512d57e2e
Closes-Bug: #2009029