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: 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

View file

@ -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

View file

@ -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:

View file

@ -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 }}'