From 91dd618b252d76e6f9b0f5cdd720c183660f07ba Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 29 Dec 2022 18:01:43 +0100 Subject: [PATCH] update sshd --- group_vars/obs/vars.yml | 10 ++++++++-- roles/do1jlr.win_sshd | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/group_vars/obs/vars.yml b/group_vars/obs/vars.yml index b6a4e33..e6f5886 100644 --- a/group_vars/obs/vars.yml +++ b/group_vars/obs/vars.yml @@ -1,6 +1,7 @@ --- # user for ansible login ansible_user: ansible +voc_user: voc # language options (important) win_base_init__os_language: 'en' @@ -17,11 +18,16 @@ ansible_password: "{{ lookup('community.general.passwordstore', 'chvoc/ansible/w # credetials gopass_password_prefix: 'chvoc/ansible/windows/' win_base_init__created_user_password: "{{ lookup('community.general.passwordstore', gopass_password_prefix + inventory_hostname + '/login/ansible create=true length=64 nosymbols=true') }}" -win_obs_init__password: "{{ lookup('community.general.passwordstore', gopass_password_prefix + inventory_hostname + '/login/voc create=true length=8 nosymbols=true') }}" +win_obs_init__password: "{{ lookup('community.general.passwordstore', gopass_password_prefix + inventory_hostname + '/login/' + voc_user + ' create=true length=8 nosymbols=true') }}" # manage autologon win_obs_init__autologon: true -win_obs_init__autologon_password: "{{ lookup('community.general.passwordstore', 'chvoc/ansible/windows/' + inventory_hostname + '/login/voc') }}" +win_obs_init__autologon_password: "{{ lookup('community.general.passwordstore', 'chvoc/ansible/windows/' + inventory_hostname + '/login/' + voc_user) }}" + +# users +win_sshd_otheruser: "{{ voc_user }}" +win_sshd_otheruserkeys: true +win_sshd_otherusepassword: "{{ win_obs_init__autologon_password }}" # define obs szene win_obs_szene__project: 'swiss_python_summit_2022' diff --git a/roles/do1jlr.win_sshd b/roles/do1jlr.win_sshd index edd671a..ca6c4c2 160000 --- a/roles/do1jlr.win_sshd +++ b/roles/do1jlr.win_sshd @@ -1 +1 @@ -Subproject commit edd671a7bdc3c5961cb551e9859162aab345d87c +Subproject commit ca6c4c26f72a7cb07c6ae47792c50d20c0939b15