update user password path, installed packages

This commit is contained in:
L3D 2021-12-20 19:55:11 +01:00
parent b918f97196
commit c3ee83a863
Signed by: l3d
GPG key ID: CD08445BFF4313D1
5 changed files with 29 additions and 2 deletions

14
.yamllint Normal file
View file

@ -0,0 +1,14 @@
---
extends: default
rules:
# 150 chars should be enough, but don't fail if a line is longer
line-length:
max: 180
level: warning
ignore: |
host_vars/mail01.l3d.space/vault.yml
host_vars/web01.l3d.space/vault.yml
group_vars/all/vault.yml
roles/

View file

@ -1,2 +1,6 @@
--- ---
win_base_init__pass_prefix: 'ansible/windows' win_obs_init__pass_prefix: 'ansible/windows'
win_obs_init__packages:
- mpvio
- vlc
- obs-studio

View file

@ -1,3 +1,7 @@
--- ---
- name: create OBS User - name: create OBS User
ansible.builtin.include_tasks: obs_user.yml ansible.builtin.include_tasks: obs_user.yml
- name: install some obs specific packages
ansible.builtin.include_tasks: packages.yml

View file

@ -3,7 +3,7 @@
ansible.windows.win_user: ansible.windows.win_user:
name: 'obs' name: 'obs'
state: present state: present
password: "{{ lookup('community.general.passwordstore', win_base_init__pass_prefix + '/' + inventory_hostname + '/login/obs create=true length=16 nosymbols=true') }}" 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'

5
tasks/packages.yml Normal file
View file

@ -0,0 +1,5 @@
---
- name: Install some obs packages
chocolatey.chocolatey.win_chocolatey:
name: "{{ win_obs_init__packages }}"
state: present