Simplify and update requirements

This commit is contained in:
L3D 2022-01-01 22:09:18 +01:00
parent 5a3635de89
commit cc2c716f9e
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 7 additions and 4 deletions

View file

@ -4,8 +4,7 @@ Ansible role to deploy a obs setup on windows
Requirements: Requirements:
---------------- ----------------
+ pass/gopass + Windows 10 ready to manage by ansible
+ System set to German
What we do: What we do:
-------------- --------------

View file

@ -1,5 +1,5 @@
--- ---
win_obs_init__pass_prefix: 'ansible/windows' win_obs_init__password: 'changeME'
win_obs_init__user: 'obs' win_obs_init__user: 'obs'
win_obs_init__autologon: false win_obs_init__autologon: false
win_obs_init__autologon_state: present win_obs_init__autologon_state: present

View file

@ -1,9 +1,13 @@
--- ---
- 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 - name: create OBS User
ansible.windows.win_user: ansible.windows.win_user:
name: 'obs' name: 'obs'
state: present 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 account_disabled: false
description: 'Account to run OBS at this WINDOWS host' description: 'Account to run OBS at this WINDOWS host'
groups_action: 'add' groups_action: 'add'