From 7676b624176d2a231d23b985f10119fae03a5fdb Mon Sep 17 00:00:00 2001 From: Matt Jia Date: Wed, 17 May 2017 10:48:46 +1000 Subject: [PATCH] waiverdb role and playbook: add the global handlers in the playbook and fix a typo in the role --- playbooks/hosts/waiverdb-dev.fedorainfracloud.org.yml | 3 +++ roles/waiverdb/tasks/main.yml | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/playbooks/hosts/waiverdb-dev.fedorainfracloud.org.yml b/playbooks/hosts/waiverdb-dev.fedorainfracloud.org.yml index c342a6e664..05a4bd278d 100644 --- a/playbooks/hosts/waiverdb-dev.fedorainfracloud.org.yml +++ b/playbooks/hosts/waiverdb-dev.fedorainfracloud.org.yml @@ -25,6 +25,9 @@ - name: set hostname (required by some services, at least postfix need it) hostname: name="{{inventory_hostname}}" + handlers: + - include: "{{ handlers_path }}/restart_services.yml" + roles: - fedmsg/base - nginx diff --git a/roles/waiverdb/tasks/main.yml b/roles/waiverdb/tasks/main.yml index 14006e8975..10c1cdba92 100644 --- a/roles/waiverdb/tasks/main.yml +++ b/roles/waiverdb/tasks/main.yml @@ -49,6 +49,8 @@ mode: 0660 backup: yes force: yes + notify: + - restart waiverdb - name: install the nginx config template: @@ -59,6 +61,4 @@ mode: 0640 notify: - restart nginx - - notify: - - restart waiverdb + \ No newline at end of file