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:
|
template:
|
||||||
src: lgproxy.cfg.j2
|
src: lgproxy.cfg.j2
|
||||||
dest: "{{ lg_path }}/lgproxy.cfg"
|
dest: "{{ lg_path }}/lgproxy.cfg"
|
||||||
|
become: false
|
||||||
notify:
|
notify:
|
||||||
- restart bird-lg-proxy
|
- restart bird-lg-proxy
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
template:
|
template:
|
||||||
src: lg.cfg.j2
|
src: lg.cfg.j2
|
||||||
dest: "{{ lg_path }}/lg.cfg"
|
dest: "{{ lg_path }}/lg.cfg"
|
||||||
|
become: false
|
||||||
notify:
|
notify:
|
||||||
- restart bird-lg-webservice
|
- restart bird-lg-webservice
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
dest: "{{ lg_path }}"
|
dest: "{{ lg_path }}"
|
||||||
version: master
|
version: master
|
||||||
force: yes
|
force: yes
|
||||||
|
become: false
|
||||||
|
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
package:
|
package:
|
||||||
|
|
|
@ -13,10 +13,12 @@
|
||||||
dest: "{{ meshviewer_src }}"
|
dest: "{{ meshviewer_src }}"
|
||||||
version: develop
|
version: develop
|
||||||
force: yes
|
force: yes
|
||||||
|
become: false
|
||||||
|
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
yarn:
|
yarn:
|
||||||
path: "{{ meshviewer_src }}"
|
path: "{{ meshviewer_src }}"
|
||||||
|
become: false
|
||||||
|
|
||||||
- name: create meshviewer config
|
- name: create meshviewer config
|
||||||
template:
|
template:
|
||||||
|
@ -25,11 +27,13 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: admin
|
owner: admin
|
||||||
group: admin
|
group: admin
|
||||||
|
become: false
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
shell: yarn run gulp
|
shell: yarn run gulp
|
||||||
args:
|
args:
|
||||||
chdir: "{{ meshviewer_src }}"
|
chdir: "{{ meshviewer_src }}"
|
||||||
|
become: false
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
shell: 'rm -rf {{ meshviewer_path }}/* && cp -ar build/* {{ meshviewer_path }} && chown www-data:www-data -R {{ meshviewer_path }}'
|
shell: 'rm -rf {{ meshviewer_path }}/* && cp -ar build/* {{ meshviewer_path }} && chown www-data:www-data -R {{ meshviewer_path }}'
|
||||||
|
|
Loading…
Reference in a new issue