diff --git a/test/integration/targets/fetch/roles/fetch_tests/tasks/setup.yml b/test/integration/targets/fetch/roles/fetch_tests/tasks/setup.yml index 89b94c46222..83b60932212 100644 --- a/test/integration/targets/fetch/roles/fetch_tests/tasks/setup.yml +++ b/test/integration/targets/fetch/roles/fetch_tests/tasks/setup.yml @@ -18,6 +18,7 @@ user: name: fetcher create_home: yes + group: "{{ _fetch_group | default(omit) }}" groups: "{{ _fetch_additional_groups | default(omit) }}" append: "{{ True if _fetch_additional_groups else False }}" password: "{{ password | default(omit) }}" diff --git a/test/integration/targets/fetch/roles/fetch_tests/vars/Darwin.yml b/test/integration/targets/fetch/roles/fetch_tests/vars/Darwin.yml index 0654b7113a0..46fe3af5930 100644 --- a/test/integration/targets/fetch/roles/fetch_tests/vars/Darwin.yml +++ b/test/integration/targets/fetch/roles/fetch_tests/vars/Darwin.yml @@ -1,3 +1,4 @@ # macOS requires users to be in an additional group for ssh access +_fetch_group: staff _fetch_additional_groups: com.apple.access_ssh