Skip to content

Commit

Permalink
feat(COLIMA): prefer brew_prefix, gather facts
Browse files Browse the repository at this point in the history
  • Loading branch information
niall-byrne committed Jul 9, 2023
1 parent e7b7fa9 commit c60a515
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion roles/colima/molecule/buildkit/verify.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
- name: Verify
hosts: all
gather_facts: false
tasks:

- name: Display Logs For Troubleshooting Failures
Expand Down
4 changes: 0 additions & 4 deletions roles/colima/molecule/common/tasks/verify_binaries.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
---
- name: Set CI Machine Type
ansible.builtin.set_fact:
brew_prefix: "{{ (lookup('env', 'PLATFORM') == 'arm64') | ternary('/opt/homebrew', '/usr/local') }}"

- name: Load Default Var Content
ansible.builtin.include_vars: "../../../defaults/main.yml"

Expand Down
1 change: 0 additions & 1 deletion roles/colima/molecule/standard/verify.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
- name: Verify
hosts: all
gather_facts: false
tasks:

- name: Display Logs For Troubleshooting Failures
Expand Down
2 changes: 1 addition & 1 deletion roles/colima/tasks/service/launchd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
become: true
ansible.builtin.template:
src: "service/colima-start-fg.sh.j2"
dest: "/usr/local/bin/colima-start-fg.sh"
dest: "{{ brew_prefix }}/bin/colima-start-fg.sh"
mode: "0750"
owner: "{{ colima_service_user }}"
group: "staff"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>/usr/local/bin/colima-start-fg.sh</string>
<string>{{ brew_prefix }}/bin/colima-start-fg.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
Expand Down

0 comments on commit c60a515

Please sign in to comment.