From c3ee83a863dc8955b5744c31616260af672797aa Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 20 Dec 2021 19:55:11 +0100 Subject: [PATCH] update user password path, installed packages --- .yamllint | 14 ++++++++++++++ defaults/main.yml | 6 +++++- tasks/main.yml | 4 ++++ tasks/obs_user.yml | 2 +- tasks/packages.yml | 5 +++++ 5 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .yamllint create mode 100644 tasks/packages.yml diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..f69cdd3 --- /dev/null +++ b/.yamllint @@ -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/ diff --git a/defaults/main.yml b/defaults/main.yml index 0d98029..4fd04d7 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml index 7c2b27c..b641662 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,3 +1,7 @@ --- - name: create OBS User ansible.builtin.include_tasks: obs_user.yml + +- name: install some obs specific packages + ansible.builtin.include_tasks: packages.yml + diff --git a/tasks/obs_user.yml b/tasks/obs_user.yml index e350f5a..bb8c133 100644 --- a/tasks/obs_user.yml +++ b/tasks/obs_user.yml @@ -3,7 +3,7 @@ ansible.windows.win_user: name: 'obs' 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 description: 'Account to run OBS at this WINDOWS host' groups_action: 'add' diff --git a/tasks/packages.yml b/tasks/packages.yml new file mode 100644 index 0000000..9d4bce5 --- /dev/null +++ b/tasks/packages.yml @@ -0,0 +1,5 @@ +--- +- name: Install some obs packages + chocolatey.chocolatey.win_chocolatey: + name: "{{ win_obs_init__packages }}" + state: present