Skip to content

Commit 1adb67f

Browse files
authored
fix(ansible/acados): add env vars to /etc/skel/.bashrc too (#6848)
Signed-off-by: Mete Fatih Cırıt <mfc@autoware.org>
1 parent cd1aa1e commit 1adb67f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

ansible/roles/acados/tasks/main.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,30 @@
8282

8383
- name: Add acados CMAKE_PREFIX_PATH to .bashrc
8484
ansible.builtin.lineinfile:
85-
path: "{{ ansible_env.HOME }}/.bashrc"
85+
path: "{{ item }}"
8686
line: export CMAKE_PREFIX_PATH="/opt/acados:${CMAKE_PREFIX_PATH}"
8787
regexp: CMAKE_PREFIX_PATH.*acados
8888
state: present
89+
loop:
90+
- "{{ ansible_env.HOME }}/.bashrc"
91+
- /etc/skel/.bashrc
8992

9093
- name: Add ACADOS_SOURCE_DIR to .bashrc
9194
ansible.builtin.lineinfile:
92-
path: "{{ ansible_env.HOME }}/.bashrc"
95+
path: "{{ item }}"
9396
line: export ACADOS_SOURCE_DIR="/opt/acados"
9497
regexp: ACADOS_SOURCE_DIR
9598
state: present
99+
loop:
100+
- "{{ ansible_env.HOME }}/.bashrc"
101+
- /etc/skel/.bashrc
96102

97103
- name: Add acados LD_LIBRARY_PATH to .bashrc
98104
ansible.builtin.lineinfile:
99-
path: "{{ ansible_env.HOME }}/.bashrc"
105+
path: "{{ item }}"
100106
line: export LD_LIBRARY_PATH="/opt/acados/lib:${LD_LIBRARY_PATH}"
101107
regexp: LD_LIBRARY_PATH.*acados
102108
state: present
109+
loop:
110+
- "{{ ansible_env.HOME }}/.bashrc"
111+
- /etc/skel/.bashrc

0 commit comments

Comments
 (0)