Cleanup and prepare for next event

This commit is contained in:
L3D 2023-09-17 22:16:12 +02:00
parent 21c585baa3
commit e3ebd90f62
No known key found for this signature in database
GPG key ID: AD65B920933B4B20
11 changed files with 37 additions and 27 deletions

3
.gitmodules vendored
View file

@ -58,3 +58,6 @@
[submodule "collections/ansible_collections/community/windows"] [submodule "collections/ansible_collections/community/windows"]
path = collections/ansible_collections/community/windows path = collections/ansible_collections/community/windows
url = https://github.com/ansible-collections/community.windows.git url = https://github.com/ansible-collections/community.windows.git
[submodule "collections/ansible_collections/chocolatey"]
path = collections/ansible_collections/chocolatey
url = https://github.com/chocolatey/chocolatey-ansible.git

View file

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2021 L3D <l3d@c3woc.de> Copyright (c) 2021-2023 L3D <l3d@c3woc.de>
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View file

@ -3,7 +3,7 @@
Ansible Playbook to Setup a Windows 10 Enterprise Host to Stream with OBS. Ansible Playbook to Setup a Windows 10 Enterprise Host to Stream with OBS.
**WINTERCONGRESS 2023 Edition** -> *This version of the ansible playbook is designed deploy the winkekatze.tv setup for Winterkongress 2023!* **SWISS PYTHON SUMMIT 2023 Edition** -> *This version of the ansible playbook is designed deploy the winkekatze.tv setup for Swiss Python Summit 2023!*
Requirements Requirements
--------------- ---------------
@ -41,12 +41,14 @@ Get-Host | Select-Object Version
Set up Ansible Set up Ansible
---------------- ----------------
Ansible Requirements Make Sure you have the latest version of ansible installed. And all git submodules are checked out and at the latest version.
```bash ```bash
ansible-galaxy install -r requirements.yml python3 -m venv ansible
source ansible/bin/activate
pip install ansible
``` ```
Install sshpass fo SSH with Passwords to windowsvia ansible Install sshpass fo SSH with Passwords to windows via ansible
```bash ```bash
sudo apt install sshpass sudo apt install sshpass
``` ```
@ -65,12 +67,12 @@ Have a look at the [official Ansible Docs](https://docs.ansible.com/ansible/late
After you installed the required deploy host python packages you can verify that the access is working by running the following ad-hoc command After you installed the required deploy host python packages you can verify that the access is working by running the following ad-hoc command
```bash ```bash
ansible -m win_ping all ansible -m ansible.builtin.win_ping all
``` ```
Windows Installation Windows Installation
---------------------- ----------------------
There is a prepared [autounattend.xml](autounattend.xml) to automate the windows installation, that will create an ``setup`` User. There is a prepared [autounattend.xml](win10_setup/autounattend.xml) to automate the windows installation, that will create an ``setup`` User.
Ad-hoc copy file example: Ad-hoc copy file example:
---------------------------- ----------------------------
@ -81,3 +83,8 @@ ansible -m ansible.windows.win_file -a "path='C:\media' state=directory" all
# copy file # copy file
ansible -m ansible.windows.win_copy -a "src=/tmp/copy.txt dest='C:\media\copy.txt'" all ansible -m ansible.windows.win_copy -a "src=/tmp/copy.txt dest='C:\media\copy.txt'" all
``` ```
Questions
-----------
Feel free to aks. For example by writing a message to ``video <at> winkekatze.tv``.

View file

@ -9,7 +9,7 @@ forks = 20
gathering = smart gathering = smart
fact_caching = jsonfile fact_caching = jsonfile
fact_caching_connection = $HOME/.ansible/facts fact_caching_connection = $HOME/.ansible/facts
host_key_checking = false host_key_checking = 'accept-new'
[passwordstore_lookup] [passwordstore_lookup]
backend = gopass backend = gopass

@ -0,0 +1 @@
Subproject commit 9bdc0d40437a7dc7f0181af42da7e35bbcfcae4a

View file

@ -35,7 +35,7 @@ win__allow_special_rdp_user: true
windows_product_key: "{{ lookup('community.general.passwordstore', 'chvoc/ansible/windows/productkey') }}" windows_product_key: "{{ lookup('community.general.passwordstore', 'chvoc/ansible/windows/productkey') }}"
# define obs szene # define obs szene
win_obs_szene__project: 'wk23' win_obs_szene__project: 'sps23'
# TODO: Artwork einfuegen, wenn verfuegbar! # TODO: Artwork einfuegen, wenn verfuegbar!
win_obs_additional_dirs: ['obs-config'] win_obs_additional_dirs: ['obs-config']
wallpaper_path: 'C:\obs\{{ win_obs_szene__project }}\background_logo_big.png' wallpaper_path: 'C:\obs\{{ win_obs_szene__project }}\background_logo_big.png'

View file

@ -1,2 +1,2 @@
[obs] [obs]
obs-aula ansible_host=obs-aula.local obs-aula ansible_host="obs-aula.local"

View file

@ -1,19 +1,18 @@
--- ---
roles: [] roles: []
collections: collections: []
# Install a collection from Ansible Galaxy. # Install a collection from Ansible Galaxy.
- name: community.general # - name: community.general
version: '>=6.1.0,<7.0.0' # version: '>=6.1.0,<7.0.0'
source: https://galaxy.ansible.com # source: https://galaxy.ansible.com
- name: chocolatey.chocolatey # - name: chocolatey.chocolatey
version: '>=1.4.0,<2.0.0' # version: '>=1.4.0,<2.0.0'
source: https://galaxy.ansible.com # source: https://galaxy.ansible.com
- name: ansible.windows # - name: ansible.windows
version: '>=1.13.0,<2.0.0' # version: '>=1.13.0,<2.0.0'
source: https://galaxy.ansible.com # source: https://galaxy.ansible.com
- name: community.windows # - name: community.windows
version: '>=1.12.0,<2.0.0' # version: '>=1.12.0,<2.0.0'
source: https://galaxy.ansible.com # source: https://galaxy.ansible.com

@ -1 +1 @@
Subproject commit ddf576f3c3f7c1e1a30d2b3341a453f21d0000f5 Subproject commit 077b55f2d036c89cf57fa277fc6bc6227ee4940f

@ -1 +1 @@
Subproject commit 81c39ab5a7177e36cb3b6deeccf7d10a0e1d84bc Subproject commit ca2bd9cbc7026d8a25c67beb6805f1693b14c0e4