Compare commits

..

No commits in common. "630130a84d5d29a3ffaf8ac9bab972f204ff92a9" and "80d9b2aacb2de55dd549000a78f85094fa5d5556" have entirely different histories.

4 changed files with 3 additions and 10 deletions

View file

@ -4,9 +4,3 @@
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!
Requirements
----------------
+ **Pass or gopass** is required to store passwords.
+ 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.

View file

@ -1,2 +1,2 @@
---
win_base_init__pass_prefix: 'ansible/windows'
win_base_init__ansible_password: ''

View file

@ -11,7 +11,7 @@
ansible.windows.win_user:
name: 'ansible'
state: present
password: "{{ lookup('community.general.passwordstore', win_base_init__pass_prefix + '/' + inventory_hostname + '/password create=true length=16 nosymbols=true')}}"
password:
account_disabled: false
description: 'Account to run ansible commands at this WINDOWS host'
groups_action: 'add'
@ -20,4 +20,5 @@
user_cannot_change_password: true
groups:
- 'Users'
- 'Administrator'
- 'Ansible'

View file

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