Commit 4beefb28 authored by Imran Hussain's avatar Imran Hussain

fiddle with mw upgrade playbook to get permissions more strict

parent e16bc866
- 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment