From 873460a251892423eead00dd1463a3fc7c559abc Mon Sep 17 00:00:00 2001 From: Haroon Khel <34969545+Haroon-Khel@users.noreply.github.com> Date: Wed, 6 Dec 2023 20:54:19 +0800 Subject: [PATCH] unixPb: Switch back to default xcode before running Macos playbook (#3250) * switch back to default xcode * move xcode switch to after brew install --- .../AdoptOpenJDK_Unix_Playbook/roles/Common/tasks/MacOSX.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/tasks/MacOSX.yml b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/tasks/MacOSX.yml index 966789f687..4b4dbb0773 100644 --- a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/tasks/MacOSX.yml +++ b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/tasks/MacOSX.yml @@ -76,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 }}"