CI: Use native Ansible support to hide macOS users
This commit is contained in:
parent
5283e6756b
commit
11d2d70fd8
|
@ -86,20 +86,11 @@
|
|||
['com.apple.access_ssh'] +
|
||||
(user_groups[item.name] | default(['mitogen__group']))
|
||||
}}
|
||||
hidden: true
|
||||
password: "{{ password }}"
|
||||
with_items: "{{all_users}}"
|
||||
when: ansible_system == 'Darwin'
|
||||
|
||||
- name: Hide users from login window (Darwin).
|
||||
when: ansible_system == 'Darwin'
|
||||
with_items: "{{all_users}}"
|
||||
osx_defaults:
|
||||
array_add: true
|
||||
domain: /Library/Preferences/com.apple.loginwindow
|
||||
type: array
|
||||
key: HiddenUsersList
|
||||
value: ['{{ item.name }}']
|
||||
|
||||
- name: Check if AccountsService is used
|
||||
stat:
|
||||
path: /var/lib/AccountsService/users
|
||||
|
|
Loading…
Reference in New Issue