image_prep: ensure Mac users can SSH without manual intervention
This commit is contained in:
parent
501cfca82b
commit
0e55bb3eb7
|
@ -75,7 +75,11 @@
|
|||
- user:
|
||||
name: "mitogen__{{item}}"
|
||||
shell: /bin/bash
|
||||
groups: "{{user_groups[item]|default(['mitogen__group'])}}"
|
||||
groups: |
|
||||
{{
|
||||
['com.apple.access_ssh'] +
|
||||
(user_groups[item] | default(['mitogen__group']))
|
||||
}}
|
||||
password: "{{item}}_password"
|
||||
with_items: "{{all_users}}"
|
||||
when: ansible_system == 'Darwin'
|
||||
|
|
Loading…
Reference in New Issue