win_ansible_role_base_setup/tasks/ansible_user.yml
2021-12-15 01:03:37 +01:00

24 lines
591 B
YAML

---
- name: Create Windows group ansible
become: true
ansible.windows.win_group:
name: 'Ansible'
description: 'Group for Ansible Management'
state: present
- name: create ansible User
become: true
ansible.windows.win_user:
name: 'ansible'
state: present
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:
- 'Users'
- 'Administrator'
- 'Ansible'