Skip to content

Commit

Permalink
Add become where needed
Browse files Browse the repository at this point in the history
Running the installer script needs `sudo` privileges, without this the
playbook hangs forever.
  • Loading branch information
bimlas committed Jan 20, 2023
1 parent 2708b11 commit 2fdb163
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion roles/install-bor/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@

- name: install bor pacakges and bor profile
shell: curl -L https://raw.githubusercontent.com/maticnetwork/install/main/bor.sh | bash -s -- {{ bor_version }} {{ network }} {{ node_type }}
become: true

- name: uncomment p2p discovery
shell: sudo sed -i 's|.*\[p2p.discovery\]| \[p2p.discovery\] |g' /var/lib/bor/config.toml
shell: sed -i 's|.*\[p2p.discovery\]| \[p2p.discovery\] |g' /var/lib/bor/config.toml
become: true

- name: make bor the user of data directory
shell: chown bor /var/lib/bor
Expand Down
1 change: 1 addition & 0 deletions roles/install-heimdall/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

- name: install heimdall pacakges and heimdall profile
shell: curl -L https://raw.githubusercontent.com/maticnetwork/install/main/heimdall.sh | bash -s -- {{ heimdall_version }} {{ network }} {{ node_type }}
become: true

- name: Setup Mainnet Heimdall Seeds
shell: sed -i 's|^seeds =.*|seeds = "[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656"|g' /var/lib/heimdall/config/config.toml
Expand Down

0 comments on commit 2fdb163

Please sign in to comment.