Skip to content

Commit 07448ca

Browse files
Merge pull request #37 from ccdc-opensource/update-brew-link-NO_JIRA
use module to link NO_JIRA
2 parents 268ae44 + f572ac0 commit 07448ca

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tasks/Darwin.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
---
22
- name: Ensure Homebrew packages are linked to system PATH
3-
ansible.builtin.command:
4-
cmd: brew link {{ package }}
5-
environment:
6-
PATH: "/usr/local/bin:/opt/homebrew/bin:{{ ansible_env.PATH }}"
3+
community.general.homebrew:
4+
name: "{{ package }}"
5+
state: linked
76
loop:
87
- jfrog-cli
98
- xcodes
109
loop_control:
1110
loop_var: package
12-
register: link_package
13-
changed_when: '"symlinks created." in link_package.stdout'
14-
failed_when: link_package.rc != 0
1511

1612
- name: Check for existing Xcode versions # noqa: no-changed-when
1713
ansible.builtin.command:

0 commit comments

Comments
 (0)