Skip to content

Commit 4e8c8fb

Browse files
committed
[Refactor] Remove become user and set become false to configure build locally
1 parent a6e0272 commit 4e8c8fb

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

tasks/configure.yml

+6-12
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@
1414
path: "{{ react_local_checkout_path }}"
1515
production: false
1616
delegate_to: localhost
17-
become: true
18-
become_user: "{{ react_local_user }}"
17+
become: false
1918

2019
- name: Build app locally
21-
become_user: "{{ react_local_user }}"
22-
become: true
20+
become: false
2321
delegate_to: localhost
2422
environment: "{{ item.env | default(react_build_cmds_default_env) }}"
2523
command: "yarn {{ item.cmd | default(react_build_default_cmd) }} {{ item.args | default() }}"
@@ -37,31 +35,27 @@
3735
chdir: "{{ react_local_checkout_path }}"
3836
ignore_errors: true
3937
delegate_to: localhost
40-
become: true
41-
become_user: "{{ react_local_user }}"
38+
become: false
4239

4340
- name: remove node_modules manually
4441
file:
4542
path: "{{ react_local_checkout_path }}/node_modules"
4643
state: absent
4744
delegate_to: localhost
48-
become: true
49-
become_user: "{{ react_local_user }}"
45+
become: false
5046

5147
- name: Compress Build folder locally
5248
archive:
5349
path: "{{ react_local_checkout_path }}/"
5450
dest: "{{ react_local_checkout_path }}.tgz"
5551
delegate_to: localhost
56-
become: true
57-
become_user: "{{ react_local_user }}"
52+
become: false
5853

5954
- name: UnCompress Build folder to remote host
6055
unarchive:
6156
src: "{{ react_local_checkout_path }}.tgz"
6257
dest: "{{ react_checkout_path }}"
63-
become: true
64-
become_user: "{{ react_system_user }}"
58+
become: false
6559
when: "not react_remote_js_build|bool"
6660

6761
- name: configure build remotely

0 commit comments

Comments
 (0)