Simplify and update requirements
This commit is contained in:
parent
5a3635de89
commit
cc2c716f9e
3 changed files with 7 additions and 4 deletions
|
@ -4,8 +4,7 @@ Ansible role to deploy a obs setup on windows
|
|||
|
||||
Requirements:
|
||||
----------------
|
||||
+ pass/gopass
|
||||
+ System set to German
|
||||
+ Windows 10 ready to manage by ansible
|
||||
|
||||
What we do:
|
||||
--------------
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
win_obs_init__pass_prefix: 'ansible/windows'
|
||||
win_obs_init__password: 'changeME'
|
||||
win_obs_init__user: 'obs'
|
||||
win_obs_init__autologon: false
|
||||
win_obs_init__autologon_state: present
|
||||
|
|
|
@ -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
|
||||
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') }}"
|
||||
account_disabled: false
|
||||
description: 'Account to run OBS at this WINDOWS host'
|
||||
groups_action: 'add'
|
||||
|
|
Loading…
Reference in a new issue