[SUCS Devel] [Git][sucs/sucs][master] fiddle with mw upgrade playbook to get permissions more strict
Imran Hussain
imranh at sucs.org
Tue Jan 24 12:18:50 GMT 2017
Imran Hussain pushed to branch master at sucs / SUCS
Commits:
4beefb28 by Imran Hussain at 2017-01-24T12:20:44+00:00
fiddle with mw upgrade playbook to get permissions more strict
- - - - -
1 changed file:
- ansible/upgrade-mw.yml
Changes:
=====================================
ansible/upgrade-mw.yml
=====================================
--- a/ansible/upgrade-mw.yml
+++ b/ansible/upgrade-mw.yml
@@ -1,22 +1,26 @@
- hosts: silver
+ become: false
+ become_user: root
tasks:
- name: check out latest mw sourve
git:
repo: https://projects.sucs.org/arthur/mw.git
- dest: /opt/
+ dest: /tmp/
- name: build the mw deb
make:
- chdir: /opt/mw
+ chdir: /tmp/mw
target: deb
- name: stop mw server
service:
name: mwserv
state: stopped
+ become: true
- name: install the latest version of mw
apt:
- deb: /opt/mw/mw*.deb
+ deb: /tmp/mw/mw*.deb
+ become: true
- name: start mw server
service:
name: mwserv
state: started
-
\ No newline at end of file
+ become: true
\ No newline at end of file
View it on GitLab: https://projects.sucs.org/sucs/sucs/commit/4beefb28a7f610f3a603b93a20e2f1ba4f03c524
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20170124/aa749e22/attachment-0001.html>
More information about the Devel
mailing list