win_ansible_role_obs_setup/tasks/obs_user.yml

15 lines
503 B
YAML
Raw Normal View History

2021-12-20 19:25:17 +01:00
---
2021-12-20 19:27:44 +01:00
- name: create OBS User
2021-12-20 19:25:17 +01:00
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') }}"
2021-12-20 19:25:17 +01:00
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'