Skip to content

Commit 01ea554

Browse files
committed
Adapt eigenlayer-cli playbook to new way of passing user
1 parent 3ebf895 commit 01ea554

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

infra/ansible/eigenlayer-cli.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
- name: Eigenlayer CLI Setup
22
hosts: all
33
become: true
4-
vars:
5-
user: "{{ user }}"
64

75
tasks:
86
- name: check if eigenlayer is installed
7+
become_user: "{{ app_user }}"
98
shell: . ~/.profile && eigenlayer -v
109
register: eigenlayer_exists
1110
ignore_errors: true
1211

1312
- name: Download Eigenlayer CLI
1413
when: eigenlayer_exists is failed
14+
become_user: "{{ app_user }}"
1515
shell:
1616
cmd: curl -sSfL https://raw.githubusercontent.com/layr-labs/eigenlayer-cli/master/scripts/install.sh | sh -s
17-
become_user: "{{ user }}"
1817

1918
- name: Add eigenlayer path to ~/.profile
2019
when: eigenlayer_exists is failed
20+
become_user: "{{ app_user }}"
2121
lineinfile:
2222
path: ~/.profile
2323
line: 'export PATH=$PATH:~/bin'
24-
create: true
2524
state: present
2625

27-
# - name: Source updated profile and test eigenlayer version
28-
# when: eigenlayer_exists is failed
29-
# shell: source ~/.profile && eigenlayer -v
26+
- name: Source updated profile and test eigenlayer version
27+
when: eigenlayer_exists is failed
28+
become_user: "{{ app_user }}"
29+
shell: . ~/.profile && eigenlayer -v

0 commit comments

Comments
 (0)