improve variable path

This commit is contained in:
L3D 2021-12-20 19:21:47 +01:00
parent 64a25c272e
commit e604e146cf
Signed by: l3d
GPG key ID: CD08445BFF4313D1

View file

@ -9,7 +9,7 @@
ansible.windows.win_user: ansible.windows.win_user:
name: 'ansible' name: 'ansible'
state: present state: present
password: "{{ lookup('community.general.passwordstore', win_base_init__pass_prefix + '/' + inventory_hostname + '/password create=true length=16 nosymbols=true') }}" password: "{{ lookup('community.general.passwordstore', win_base_init__pass_prefix + '/' + inventory_hostname + '/login/ansible create=true length=42 nosymbols=true') }}"
account_disabled: false account_disabled: false
description: 'Account to run ansible commands at this WINDOWS host' description: 'Account to run ansible commands at this WINDOWS host'
groups_action: 'add' groups_action: 'add'
@ -17,6 +17,6 @@
password_never_expires: true password_never_expires: true
user_cannot_change_password: true user_cannot_change_password: true
groups: groups:
- 'Benutzer'
- 'Ansibles' - 'Ansibles'
- 'Administratoren' - 'Administratoren'
- 'Benutzer'