image_prep: ensure Mac users can SSH without manual intervention

This commit is contained in:
David Wilson 2019-07-31 00:13:15 +01:00
parent 501cfca82b
commit 0e55bb3eb7
1 changed files with 5 additions and 1 deletions

View File

@ -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'