2021-12-20 19:25:17 +01:00
|
|
|
---
|
2022-01-01 22:09:18 +01:00
|
|
|
- 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'
|
|
|
|
|
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
|
2022-02-16 20:49:46 +01:00
|
|
|
password: "{{ win_obs_init__password }}"
|
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:
|
2022-01-01 21:53:30 +01:00
|
|
|
- 'S-1-5-32-545' # Users
|