From 0e55bb3eb7d3dd972165910847ebebf3a0a5b659 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 31 Jul 2019 00:13:15 +0100 Subject: [PATCH] image_prep: ensure Mac users can SSH without manual intervention --- tests/image_prep/_user_accounts.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/image_prep/_user_accounts.yml b/tests/image_prep/_user_accounts.yml index e6ace82f..70f5d0eb 100644 --- a/tests/image_prep/_user_accounts.yml +++ b/tests/image_prep/_user_accounts.yml @@ -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'