win_ansible_role_obs_setup/tasks/obs_user.yml
2022-01-01 22:02:26 +01:00

14 lines
515 B
YAML

---
- name: create OBS User
ansible.windows.win_user:
name: 'obs'
state: present
password: "{{ lookup('community.general.passwordstore', win_obs_init__pass_prefix + '/' + inventory_hostname + '/login/obs create=true length=16 nosymbols=true') }}"
account_disabled: false
description: 'Account to run OBS at this WINDOWS host'
groups_action: 'add'
password_expired: false
password_never_expires: true
user_cannot_change_password: true
groups:
- 'S-1-5-32-545' # Users