roles: don't become root when writing in /home/admin
This commit is contained in:
parent
8c8039b8b6
commit
30a5897c36
4 changed files with 7 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
template:
|
||||
src: lgproxy.cfg.j2
|
||||
dest: "{{ lg_path }}/lgproxy.cfg"
|
||||
become: false
|
||||
notify:
|
||||
- restart bird-lg-proxy
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
template:
|
||||
src: lg.cfg.j2
|
||||
dest: "{{ lg_path }}/lg.cfg"
|
||||
become: false
|
||||
notify:
|
||||
- restart bird-lg-webservice
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
dest: "{{ lg_path }}"
|
||||
version: master
|
||||
force: yes
|
||||
become: false
|
||||
|
||||
- name: install dependencies
|
||||
package:
|
||||
|
|
|
@ -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 }}'
|
||||
|
|
Loading…
Reference in a new issue