Skip to content

Commit 59b06e3

Browse files
Merge pull request #32 from ccdc-opensource/florianpiesche-patch-1
Get root for xcode setup where required (NO_JIRA)
2 parents 2615aa2 + da23cff commit 59b06e3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tasks/Darwin.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
- name: Check for existing Xcode v{{ xcode_version }} # noqa: no-changed-when
2121
ansible.builtin.command:
2222
cmd: xcodes installed {{ xcode_version }}
23-
ignore_errors: "{{ ansible_check_mode }}"
23+
ignore_errors: true
2424
register: xcode_check
2525
environment:
2626
PATH: "/opt/homebrew/bin:/usr/local/bin:{{ ansible_env.PATH }}"
@@ -52,17 +52,19 @@
5252
cmd: xcodes install {{ xcode_version }} --path /tmp/xcode-{{ xcode_version }}.xip --experimental-unxip
5353
environment:
5454
PATH: "/opt/homebrew/bin:/usr/local/bin:{{ ansible_env.PATH }}"
55+
become: true
5556

5657
- name: Set active Xcode to v{{ xcode_version }} # noqa: no-changed-when
5758
ansible.builtin.command:
5859
cmd: xcodes select {{ xcode_version }}
5960
environment:
6061
PATH: "/opt/homebrew/bin:/usr/local/bin:{{ ansible_env.PATH }}"
62+
become: true
6163

6264
- name: Accept Xcode licence # noqa: no-changed-when
6365
ansible.builtin.command:
6466
cmd: xcodebuild -license accept
65-
check_mode: true
67+
become: true
6668

6769
- name: Get list of installed packages # noqa: no-changed-when
6870
ansible.builtin.command:

0 commit comments

Comments
 (0)