diff --git a/handlers/main.yml b/handlers/main.yml index 1e8bc2c7..053736f2 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -12,15 +12,10 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - -- name: Reload systemd daemon - command: "systemctl daemon-reload" - notify: - - Restart glance services - - name: Restart glance services - service: + systemd: name: "{{ item.value.service_name }}" state: "restarted" + daemon_reload: yes with_dict: "{{ glance_services }}" when: inventory_hostname in groups[item.value.group] diff --git a/tasks/glance_init_systemd.yml b/tasks/glance_init_systemd.yml index 5b57db65..cce37a2b 100644 --- a/tasks/glance_init_systemd.yml +++ b/tasks/glance_init_systemd.yml @@ -63,4 +63,4 @@ with_dict: "{{ glance_services }}" when: inventory_hostname in groups[item.value.group] notify: - - Reload systemd daemon + - Restart glance services