[SUCS Devel] [Git][sucs/sucs][master] Add ansible role to install and config mw
Imran Hussain
imranh at sucs.org
Thu Jan 12 15:25:52 GMT 2017
Imran Hussain pushed to branch master at sucs / SUCS
Commits:
0363be10 by Imran Hussain at 2017-01-12T15:28:08+00:00
Add ansible role to install and config mw
- - - - -
2 changed files:
- + ansible/roles/mw/handlers/main.yml
- + ansible/roles/mw/tasks/main.yml
Changes:
=====================================
ansible/roles/mw/handlers/main.yml
=====================================
--- /dev/null
+++ b/ansible/roles/mw/handlers/main.yml
@@ -0,0 +1,21 @@
+- name: build
+ make:
+ chdir: /opt/mw
+ target: deb
+ notify: stop mw
+
+- name: stop mw
+ service:
+ name: mwserv
+ state: stopped
+ notify: install mw
+
+- name: install mw
+ apt:
+ deb: /opt/mw/mw*.deb
+ notify: start mwserv
+
+- name: start mwserv
+ service:
+ name: mwserv
+ state: started
\ No newline at end of file
=====================================
ansible/roles/mw/tasks/main.yml
=====================================
--- /dev/null
+++ b/ansible/roles/mw/tasks/main.yml
@@ -0,0 +1,5 @@
+- name: check out latest mw sourve
+ git:
+ repo: https://projects.sucs.org/arthur/mw.git
+ dest: /opt/
+ notify: build
View it on GitLab: https://projects.sucs.org/sucs/sucs/commit/0363be106e40f571ab609ecaecd2128738d926c5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20170112/ec935633/attachment-0001.html>
More information about the Devel
mailing list