adding user
This commit is contained in:
parent
630130a84d
commit
aa51fb36bf
3 changed files with 12 additions and 8 deletions
|
@ -10,3 +10,6 @@ WINDOWS Ansible role to create a little base Setup for my Ansible Managed Window
|
||||||
+ **Pass or gopass** is required to store passwords.
|
+ **Pass or gopass** is required to store passwords.
|
||||||
+ See [ansible docs](https://docs.ansible.com/ansible/latest/collections/community/general/passwordstore_lookup.html)
|
+ See [ansible docs](https://docs.ansible.com/ansible/latest/collections/community/general/passwordstore_lookup.html)
|
||||||
+ Have a password store setup. Either create a symlink from pass to gopass or use pass nativly.
|
+ Have a password store setup. Either create a symlink from pass to gopass or use pass nativly.
|
||||||
|
|
||||||
|
+ **Language: DE**
|
||||||
|
+ We work with the German Group Names!
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: Create Windows group ansible
|
- name: Create Windows group ansibles
|
||||||
become: true
|
|
||||||
ansible.windows.win_group:
|
ansible.windows.win_group:
|
||||||
name: 'Ansible'
|
name: 'Ansibles'
|
||||||
description: 'Group for Ansible Management'
|
description: 'Group for Ansible Management'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: create ansible User
|
- name: create ansible User
|
||||||
become: true
|
|
||||||
ansible.windows.win_user:
|
ansible.windows.win_user:
|
||||||
name: 'ansible'
|
name: 'ansible'
|
||||||
state: present
|
state: present
|
||||||
|
@ -19,5 +17,8 @@
|
||||||
password_never_expires: true
|
password_never_expires: true
|
||||||
user_cannot_change_password: true
|
user_cannot_change_password: true
|
||||||
groups:
|
groups:
|
||||||
- 'Users'
|
- 'Ansibles'
|
||||||
- 'Ansible'
|
- 'Administratoren'
|
||||||
|
- 'Benutzer'
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: create Ansible Windows Group and User
|
- name: create Ansible Windows Group and User
|
||||||
ansible.builtin.include_task: ansible_user.yml
|
ansible.builtin.include_tasks: ansible_user.yml
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue