Compare commits

...

2 commits

Author SHA1 Message Date
L3D
80d9b2aacb
start creating ansible tasks 2021-12-15 01:03:37 +01:00
L3D
838d25752c
improve description 2021-12-15 00:48:19 +01:00
4 changed files with 31 additions and 2 deletions

View file

@ -1,6 +1,6 @@
win_ansible_role_setup_user
win_ansible_role_base_setup
=============================
WINDOWS Ansible role to create a Setup Users called ansible to manage your Windows 10 host
WINDOWS Ansible role to create a little base Setup for my Ansible Managed Windows 10 Enterprise Hosts
## Please not, this is my first windows role and highly experimental!

2
defaults/main.yml Normal file
View file

@ -0,0 +1,2 @@
---
win_base_init__ansible_password: ''

24
tasks/ansible_user.yml Normal file
View file

@ -0,0 +1,24 @@
---
- 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'

3
tasks/main.yml Normal file
View file

@ -0,0 +1,3 @@
---
- name: create Ansible Windows Group and User
ansible.builtin.include_task: ansible_user.yml