Adding device owner info

This commit is contained in:
L3D 2022-01-02 16:40:53 +01:00
parent 2492e0ef5a
commit b596e01068
Signed by: l3d
GPG key ID: CD08445BFF4313D1
4 changed files with 21 additions and 0 deletions

View file

@ -10,3 +10,11 @@ WINDOWS Ansible role to create a little base Setup for my Ansible Managed Window
+ **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.
What this role does:
---------------------
+ Optionally setting OS description, owner and org if you define them in these variables:
- ``win_base_init__os_description: ''``
- ``win_base_init__os_organization: ''``
- ``win_base_init__os_owner: ''``

View file

@ -5,3 +5,7 @@ win_base_init__packages:
- Firefox
- mpvio
- vlc
win_base_init__os_description: ''
win_base_init__os_organization: ''
win_base_init__os_owner: ''

6
tasks/description.yml Normal file
View file

@ -0,0 +1,6 @@
---
- name: Set Windows description, owner and organization
community.windows.win_computer_description:
description: "{{ win_base_init__os_description }}"
owner: "{{ win_base_init__os_owner }}"
organization: "{{ win_base_init__os_organization }}"

View file

@ -8,6 +8,9 @@
- name: configure hostname
ansible.builtin.include_tasks: hostname.yml
- name: configure OS description
ansible.builtin.include_tasks: description.yml
- name: install some useful packages
ansible.builtin.include_tasks: packages.yml