win_ansible_role_obs_setup/tasks/obs_user.yml
2022-02-16 20:49:46 +01:00

19 lines
574 B
YAML

---
- name: fail if win_obs_init__password is unset
ansible.builtin.fail:
msg: "Please define a password for 'win_obs_init__password'!"
when: win_obs_init__password == 'changeME'
- name: create OBS User
ansible.windows.win_user:
name: 'obs'
state: present
password: "{{ win_obs_init__password }}"
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