From 7183d17a2026ec37e13082ba1e5012354878f3c8 Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 31 Dec 2022 23:35:55 +0100 Subject: [PATCH] users --- tasks/ansible_user.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tasks/ansible_user.yml b/tasks/ansible_user.yml index 4a55b3b..7eb87d2 100644 --- a/tasks/ansible_user.yml +++ b/tasks/ansible_user.yml @@ -10,15 +10,15 @@ msg: "Please define a password for the user {{ win_base_init__created_user_name }} using 'win_base_init__created_user_password'!" when: win_base_init__created_user_password == 'ChangeToSecurePassword' -#- name: Create ansible User -# ansible.windows.win_user: -# name: "{{ win_base_init__created_user_name }}" -# state: present -# password: "{{ win_base_init__created_user_password }}" -# account_disabled: false -# description: 'Account to run ansible commands at this WINDOWS host' -# groups_action: 'add' -# password_expired: false -# password_never_expires: true -# user_cannot_change_password: true -# groups: "{{ win_base_init__os_groups }}" +- name: Create ansible User + ansible.windows.win_user: + name: "{{ win_base_init__created_user_name }}" + state: present + password: "{{ win_base_init__created_user_password }}" + account_disabled: false + description: 'Account to run ansible commands at this WINDOWS host' + groups_action: 'add' + password_expired: false + password_never_expires: true + user_cannot_change_password: true + groups: "{{ win_base_init__os_groups }}"