win_ansible_role_obs_setup/tasks/obs_user.yml
2021-12-20 19:25:17 +01:00

14 lines
508 B
YAML

---
- name: create ansible User
ansible.windows.win_user:
name: 'obs'
state: present
password: "{{ lookup('community.general.passwordstore', win_base_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:
- 'Benutzer'