[SUCS Devel] [Git][sucs/sucs][master] Add an ansible playbook to upgarde mw

Imran Hussain imranh at sucs.org
Thu Jan 12 15:02:33 GMT 2017


Imran Hussain pushed to branch master at sucs / SUCS


Commits:
b3fdfaad by Imran Hussain at 2017-01-12T15:04:36+00:00
Add an ansible playbook to upgarde mw

- - - - -


1 changed file:

- + ansible/upgrade-mw.yml


Changes:

=====================================
ansible/upgrade-mw.yml
=====================================
--- /dev/null
+++ b/ansible/upgrade-mw.yml
@@ -0,0 +1,22 @@
+- hosts: silver
+  tasks:
+    - name: check out latest mw sourve
+      git:
+        repo: https://projects.sucs.org/arthur/mw.git
+        dest: /opt/
+    - name: build the mw deb
+      make:
+        chdir: /opt/mw
+        target: deb
+    - name: stop mw server
+      service:
+        name: mwserv
+        state: stopped
+    - name: install the latest version of mw
+      apt:
+        deb: /opt/mw/mw*.deb
+    - name: start mw server
+      service:
+        name: mwserv
+        state: started
+          
\ No newline at end of file



View it on GitLab: https://projects.sucs.org/sucs/sucs/commit/b3fdfaad4022ef5173e8a1898a8127b73725433a
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20170112/b762c268/attachment.html>


More information about the Devel mailing list