File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 20
20
- name : Check for existing Xcode v{{ xcode_version }} # noqa: no-changed-when
21
21
ansible.builtin.command :
22
22
cmd : xcodes installed {{ xcode_version }}
23
- ignore_errors : " {{ ansible_check_mode }} "
23
+ ignore_errors : true
24
24
register : xcode_check
25
25
environment :
26
26
PATH : " /opt/homebrew/bin:/usr/local/bin:{{ ansible_env.PATH }}"
52
52
cmd : xcodes install {{ xcode_version }} --path /tmp/xcode-{{ xcode_version }}.xip --experimental-unxip
53
53
environment :
54
54
PATH : " /opt/homebrew/bin:/usr/local/bin:{{ ansible_env.PATH }}"
55
+ become : true
55
56
56
57
- name : Set active Xcode to v{{ xcode_version }} # noqa: no-changed-when
57
58
ansible.builtin.command :
58
59
cmd : xcodes select {{ xcode_version }}
59
60
environment :
60
61
PATH : " /opt/homebrew/bin:/usr/local/bin:{{ ansible_env.PATH }}"
62
+ become : true
61
63
62
64
- name : Accept Xcode licence # noqa: no-changed-when
63
65
ansible.builtin.command :
64
66
cmd : xcodebuild -license accept
65
- check_mode : true
67
+ become : true
66
68
67
69
- name : Get list of installed packages # noqa: no-changed-when
68
70
ansible.builtin.command :
You can’t perform that action at this time.
0 commit comments