[PATCH 1/2] Move service start to the end (after we did set it up)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Michael Scherer <misc@xxxxxxxx>

Also remove notify for handler for service, since the service
will be started by service, no need to notify a handler to restart
it.
---
 roles/fedmsg/gateway/tasks/main.yml | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/roles/fedmsg/gateway/tasks/main.yml b/roles/fedmsg/gateway/tasks/main.yml
index 86bece4..cd34b26 100644
--- a/roles/fedmsg/gateway/tasks/main.yml
+++ b/roles/fedmsg/gateway/tasks/main.yml
@@ -15,14 +15,6 @@
   tags:
   - fedmsgmonitor
 
-- name: enable on boot and start fedmsg-gateway
-  service: name=fedmsg-gateway state=started enabled=true
-  tags:
-  - services
-  - fedmsg/gateway
-  notify:
-  - restart fedmsg-gateway
-
 - name: setup fedmsg-gateway config file
   copy: src=gateway.py dest=/etc/fedmsg.d/gateway.py
   tags:
@@ -40,3 +32,9 @@
   - fedmsg/gateway
   notify:
   - restart fedmsg-gateway
+
+- name: enable on boot and start fedmsg-gateway
+  service: name=fedmsg-gateway state=started enabled=true
+  tags:
+  - services
+  - fedmsg/gateway
-- 
1.8.3.1
_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/infrastructure@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux