Skip to content

Commit 90115d6

Browse files
committed
Added small fixes to check if nodejs is installed.
1 parent 98a39b7 commit 90115d6

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

infra/ansible/playbooks/explorer.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@
2929

3030
pre_tasks:
3131
- name: Install pnpm
32+
become: true
3233
ansible.builtin.shell:
3334
cmd: npm install -g pnpm
35+
vars:
36+
ansible_ssh_user: "{{ admin_user }}"
3437

3538
- name: Clone the aligned_layer repository
3639
register: clone_repo

infra/ansible/playbooks/nodejs.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@
99
node_install_dir: "/usr/local/"
1010
node_bin_path: "/usr/local/bin/node"
1111

12-
1312
tasks:
14-
1513
- name: Check if Node.js is already installed
1614
ansible.builtin.shell:
17-
cmd: "{{ node_bin_path }} --version"
15+
cmd: "which {{ node_bin_path }}"
1816
register: node_check
1917
changed_when: false
2018
failed_when: node_check.rc not in [0, 1]

infra/ansible/stage_inventory.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ batcher:
1515
explorer:
1616
hosts:
1717
aligned-holesky-explorer:
18-
ansible_host: aligned-holesky-explorer
18+
ansible_host: aligned-holesky-stage-2-explorer
1919
admin_user: admin
20-
ansible_user: app
20+
ansible_user: dev
2121
ansible_python_interpreter: /usr/bin/python3
2222
operator:
2323
hosts:

0 commit comments

Comments
 (0)