From e604e146cfd3aa0419b5e03526c54b1616f84dbd Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 20 Dec 2021 19:21:47 +0100 Subject: [PATCH] improve variable path --- tasks/ansible_user.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/ansible_user.yml b/tasks/ansible_user.yml index 8fc130b..41358fc 100644 --- a/tasks/ansible_user.yml +++ b/tasks/ansible_user.yml @@ -9,7 +9,7 @@ ansible.windows.win_user: name: 'ansible' 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 description: 'Account to run ansible commands at this WINDOWS host' groups_action: 'add' @@ -17,6 +17,6 @@ password_never_expires: true user_cannot_change_password: true groups: + - 'Benutzer' - 'Ansibles' - 'Administratoren' - - 'Benutzer'