introducing windows specific variables
This commit is contained in:
parent
27cf9f9b77
commit
19d613bb4f
8 changed files with 36 additions and 6 deletions
|
@ -11,5 +11,6 @@ WINDOWS Ansible role to create a little base Setup for my Ansible Managed Window
|
||||||
+ 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**
|
+ **Language: DE or EN**
|
||||||
+ We work with the German Group Names!
|
+ Define the ``win_base_init__os_language`` variable to fit your Group Names ``('de' or 'en' are supported values)``.
|
||||||
|
+ It looks like Windows is using other Group Names depending on your OS language settings.
|
||||||
|
|
|
@ -5,3 +5,7 @@ win_base_init__packages:
|
||||||
- Firefox
|
- Firefox
|
||||||
- mpvio
|
- mpvio
|
||||||
- vlc
|
- vlc
|
||||||
|
|
||||||
|
win_base_init__os_language: 'en'
|
||||||
|
# 'en' for english Group names like 'Users'
|
||||||
|
# 'de' for german group names like 'Benutzer'
|
||||||
|
|
|
@ -16,7 +16,4 @@
|
||||||
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:
|
groups: "{{ win_base_init__os_groups }}
|
||||||
- 'Benutzer'
|
|
||||||
- 'Ansibles'
|
|
||||||
- 'Administratoren'
|
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
---
|
---
|
||||||
|
- name: load variables depending on language
|
||||||
|
ansible.builtin.include_tasks: variables.yml
|
||||||
|
|
||||||
- name: create Ansible Windows Group and User
|
- name: create Ansible Windows Group and User
|
||||||
ansible.builtin.include_tasks: ansible_user.yml
|
ansible.builtin.include_tasks: ansible_user.yml
|
||||||
|
|
||||||
|
|
10
tasks/variables.yml
Normal file
10
tasks/variables.yml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
- name: Load language specific windows variables
|
||||||
|
include_vars: "{{ lookup('first_found', params) }}"
|
||||||
|
vars:
|
||||||
|
params:
|
||||||
|
files:
|
||||||
|
- "windows_{{ win_base_init__os_language }}.yml"
|
||||||
|
- 'windows_default.yml'
|
||||||
|
paths:
|
||||||
|
- 'vars'
|
5
vars/windows_de.yml
Normal file
5
vars/windows_de.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
win_base_init__os_groups:
|
||||||
|
- 'Benutzer'
|
||||||
|
- 'Ansibles'
|
||||||
|
- 'Administratoren'
|
5
vars/windows_default.yml
Normal file
5
vars/windows_default.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
win_base_init__os_groups:
|
||||||
|
- 'S-1-5-32-545'
|
||||||
|
- 'Ansibles'
|
||||||
|
- 'S-1-5-32-544'
|
5
vars/windows_en.yml
Normal file
5
vars/windows_en.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
win_base_init__os_groups:
|
||||||
|
- 'Users'
|
||||||
|
- 'Ansibles'
|
||||||
|
- 'Administrators'
|
Loading…
Reference in a new issue