This commit is contained in:
L3D 2022-12-31 22:10:19 +01:00
parent 649bb23e30
commit f6f78a8613
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 13 additions and 12 deletions

View file

@ -7,6 +7,7 @@ win_base_init__packages:
- Firefox - Firefox
- mpvio - mpvio
- vlc - vlc
- 7zip
win_base_init__os_description: '' win_base_init__os_description: ''
win_base_init__os_organization: '' win_base_init__os_organization: ''

View file

@ -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'!" 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' when: win_base_init__created_user_password == 'ChangeToSecurePassword'
- name: Create ansible User #- name: Create ansible User
ansible.windows.win_user: # ansible.windows.win_user:
name: "{{ win_base_init__created_user_name }}" # name: "{{ win_base_init__created_user_name }}"
state: present # state: present
password: "{{ win_base_init__created_user_password }}" # password: "{{ win_base_init__created_user_password }}"
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'
password_expired: false # password_expired: false
password_never_expires: true # password_never_expires: true
user_cannot_change_password: true # user_cannot_change_password: true
groups: "{{ win_base_init__os_groups }}" # groups: "{{ win_base_init__os_groups }}"