Skip to content

Commit cdd0628

Browse files
TO-249 update darwin.yml to have more permissions
1 parent 385c0ba commit cdd0628

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tasks/Darwin.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@
2525
- name: xfreebird/utils
2626
homebrew_installed_packages:
2727
- xfreebird/utils/kcpassword
28+
become: true
2829

2930
- name: Add kcpassword utility for autologin
3031
community.general.homebrew:
3132
name: kcpassword
3233
state: present
34+
become: true
3335

3436
- name: Set autoLoginUser
3537
community.general.osx_defaults:
@@ -41,7 +43,10 @@
4143
become: true
4244

4345
- name: Set the autologon password # noqa: no-changed-when
44-
ansible.builtin.command: /usr/local/bin/kcpassword "vagrant"
46+
ansible.builtin.command:
47+
cmd: kcpassword vagrant
48+
environment:
49+
PATH: "/opt/homebrew/bin:/usr/local/bin:{{ ansible_env.PATH }}"
4550
become: true
4651

4752
- name: Set Europe/London time zone

0 commit comments

Comments
 (0)