Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

Commit

Permalink
Change User ID step
Browse files Browse the repository at this point in the history
Files did not have correct owner preventing jobs to be executed
  • Loading branch information
jburel committed Nov 1, 2017
1 parent 7deebe8 commit 8ffd104
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,19 @@
path: "{{ devspace_home }}/slave/.ssh/known_hosts"
mode: 0700

- name: change USER_ID
become: yes
become_user: "{{ devspace_user }}"
replace:
dest: "{{ devspace_home }}/{{ item }}"
regexp: '^ARG USER_ID=1000'
replace: 'ARG USER_ID={{ devspace_user_id }}' # how to find out UID?
with_items:
- nginx/Dockerfile
- slave/Dockerfile
- server/Dockerfile
- web/Dockerfile

- name: set basic auth password for nginx proxy
become: yes
lineinfile:
Expand Down

0 comments on commit 8ffd104

Please sign in to comment.