Skip to content

Commit 0e55bb3

Browse files
committed
image_prep: ensure Mac users can SSH without manual intervention
1 parent 501cfca commit 0e55bb3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/image_prep/_user_accounts.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@
7575
- user:
7676
name: "mitogen__{{item}}"
7777
shell: /bin/bash
78-
groups: "{{user_groups[item]|default(['mitogen__group'])}}"
78+
groups: |
79+
{{
80+
['com.apple.access_ssh'] +
81+
(user_groups[item] | default(['mitogen__group']))
82+
}}
7983
password: "{{item}}_password"
8084
with_items: "{{all_users}}"
8185
when: ansible_system == 'Darwin'

0 commit comments

Comments
 (0)