diff --git a/handlers/main.yml b/handlers/main.yml index ffb4bd7..cfba926 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -14,15 +14,17 @@ # limitations under the License. - name: Restart Apache - service: + systemd: name: "apache2" state: "restarted" + daemon_reload: yes register: apache_restart until: apache_restart|success retries: 5 delay: 2 - name: Restart barbican services - service: + systemd: name: "{{ barbican_uwsgi_program_name }}" state: "restarted" + diff --git a/tasks/barbican_init_systemd.yml b/tasks/barbican_init_systemd.yml index 51bfab9..ccac7c9 100644 --- a/tasks/barbican_init_systemd.yml +++ b/tasks/barbican_init_systemd.yml @@ -44,10 +44,5 @@ mode: "0644" owner: "root" group: "root" - register: systemd_init - -- name: Reload the systemd daemon - command: "systemctl daemon-reload" - when: systemd_init | changed notify: - Restart barbican services