roles: don't become root when writing in /home/admin

This commit is contained in:
Julian Labus 2018-09-25 16:41:43 +02:00
parent 8c8039b8b6
commit 30a5897c36
No known key found for this signature in database
GPG key ID: 8AF209F2C6B3572A
4 changed files with 7 additions and 0 deletions

View file

@ -3,6 +3,7 @@
template:
src: lgproxy.cfg.j2
dest: "{{ lg_path }}/lgproxy.cfg"
become: false
notify:
- restart bird-lg-proxy

View file

@ -3,6 +3,7 @@
template:
src: lg.cfg.j2
dest: "{{ lg_path }}/lg.cfg"
become: false
notify:
- restart bird-lg-webservice

View file

@ -5,6 +5,7 @@
dest: "{{ lg_path }}"
version: master
force: yes
become: false
- name: install dependencies
package:

View file

@ -13,10 +13,12 @@
dest: "{{ meshviewer_src }}"
version: develop
force: yes
become: false
- name: install dependencies
yarn:
path: "{{ meshviewer_src }}"
become: false
- name: create meshviewer config
template:
@ -25,11 +27,13 @@
mode: 0644
owner: admin
group: admin
become: false
- name: build
shell: yarn run gulp
args:
chdir: "{{ meshviewer_src }}"
become: false
- name: deploy
shell: 'rm -rf {{ meshviewer_path }}/* && cp -ar build/* {{ meshviewer_path }} && chown www-data:www-data -R {{ meshviewer_path }}'