Skip to content

Commit

Permalink
move xcode switch to after brew install
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroon-Khel committed Nov 28, 2023
1 parent af2a367 commit ff5e81c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
msg: "The version of Ansible you are using needs to be greater than 2.11"
when: ansible_version.full is version('2.11', '<=')

- name: Switch back to command line tools xcode before proceeding
command: sudo xcode-select --switch /
tags: adoptopenjdk

- name: Get macOS version
shell: sw_vers -productVersion
register: macos_version
Expand Down Expand Up @@ -80,6 +76,10 @@
script: scripts/install-homebrew.sh
when: not brew.stat.exists

- name: Switch back to command line tools xcode before proceeding
command: sudo xcode-select --switch /
tags: adoptopenjdk

- name: Upgrade installed packages
become: yes
become_user: "{{ ansible_user }}"
Expand Down

0 comments on commit ff5e81c

Please sign in to comment.