From f2262f3994c314de800abbd68ae59229a11ed555 Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 1 Jan 2022 22:22:12 +0100 Subject: [PATCH] adding secound device --- group_vars/all/vars.yml | 1 - group_vars/obs/vars.yml | 11 +++++++++++ host_vars/obs-chrysalis/vars.yml | 8 +------- host_vars/obs-snips/vars.yml | 6 ++++++ hosts.ini | 1 + 5 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 group_vars/obs/vars.yml create mode 100644 host_vars/obs-snips/vars.yml diff --git a/group_vars/all/vars.yml b/group_vars/all/vars.yml index 8d82090..5999030 100644 --- a/group_vars/all/vars.yml +++ b/group_vars/all/vars.yml @@ -1,4 +1,3 @@ --- # use chvoc store for gopass passwords win_base_init__pass_prefix: 'chvoc/ansible/windows' -win_obs_init__pass_prefix: "{{ win_base_init__pass_prefix }}" diff --git a/group_vars/obs/vars.yml b/group_vars/obs/vars.yml new file mode 100644 index 0000000..38ac87b --- /dev/null +++ b/group_vars/obs/vars.yml @@ -0,0 +1,11 @@ +--- +ansible_connection: winrm +ansible_winrm_server_cert_validation: ignore +ansible_password: "{{ lookup('community.general.passwordstore', 'chvoc/ansible/windows/' + inventory_hostname + '/login/' + ansible_user) }}" + +# credetials +win_obs_init__password: "{{ lookup('community.general.passwordstore', win_base_init__pass_prefix + '/' + inventory_hostname + '/login/obs create=true length=16 nosymbols=true') }}" + +# manage autologon +win_obs_init__autologon: true +win_obs_init__autologon_password: "{{ lookup('community.general.passwordstore', 'chvoc/ansible/windows/' + inventory_hostname + '/login/obs') }}" diff --git a/host_vars/obs-chrysalis/vars.yml b/host_vars/obs-chrysalis/vars.yml index b135800..6ac89d5 100644 --- a/host_vars/obs-chrysalis/vars.yml +++ b/host_vars/obs-chrysalis/vars.yml @@ -1,12 +1,6 @@ --- -ansible_connection: winrm +# user for ansible login ansible_user: ansible -ansible_winrm_server_cert_validation: ignore -ansible_password: "{{ lookup('community.general.passwordstore', 'ansible/windows/' + inventory_hostname + '/login/' + ansible_user) }}" - -remove_win_apps__users: - - obs - - ansible # OS language win_base_init__os_language: 'de' diff --git a/host_vars/obs-snips/vars.yml b/host_vars/obs-snips/vars.yml new file mode 100644 index 0000000..ce59eca --- /dev/null +++ b/host_vars/obs-snips/vars.yml @@ -0,0 +1,6 @@ +--- +# user for ansible login +ansible_user: root + +# OS language +win_base_init__os_language: 'en' diff --git a/hosts.ini b/hosts.ini index fbd448e..f2a5cdd 100644 --- a/hosts.ini +++ b/hosts.ini @@ -1,2 +1,3 @@ [obs] obs-chrysalis ansible_host=obs-chrysalis.local +obs-snips ansible_host=obs-snips.local