Skip to content

Commit

Permalink
Merge pull request #124 from thaim/fix-aqua-path
Browse files Browse the repository at this point in the history
Add aqua bin to PATH
  • Loading branch information
thaim authored Sep 27, 2024
2 parents 031ac85 + 9328bb5 commit b1af51e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions roles/aqua/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@
shell_info: "{{ ansible_user_shell | shell_config }}"

- name: Setup environment variable
ansible.builtin.lineinfile:
line: 'export AQUA_GLOBAL_CONFIG=$HOME/.config/aquaproj-aqua/aqua.yaml'
dest: '{{ ansible_user_dir }}/{{ shell_info.rc_file }}'
ansible.builtin.blockinfile:
path: '{{ ansible_user_dir }}/{{ shell_info.rc_file }}'
marker: "# {mark} ANSIBLE MANAGED BLOCK aqua"
block: |
export AQUA_GLOBAL_CONFIG=$HOME/.config/aquaproj-aqua/aqua.yaml
export PATH="$(aqua root-dir)/bin:$PATH"
- name: Install packages
ansible.builtin.command: aqua --config ~/.config/aquaproj-aqua/aqua.yaml i
Expand Down

0 comments on commit b1af51e

Please sign in to comment.