Mirror of Windows OBS Playbook
Go to file
L3D 99ad3ccf98
Loudnessdock
2024-02-26 21:34:22 +01:00
collections/ansible_collections update media and continue setup 2024-02-26 21:01:21 +01:00
group_vars/obs update media and continue setup 2024-02-26 21:01:21 +01:00
host_vars update media and continue setup 2024-02-26 21:01:21 +01:00
roles Loudnessdock 2024-02-26 21:34:22 +01:00
win10_setup Cleanup and prepare for next event 2023-09-18 23:09:13 +02:00
.gitignore Starting cleanup 2023-09-18 11:55:53 +02:00
.gitmodules Add background and set timezone 2024-02-25 20:57:10 +01:00
.yamllint improve linting, update modules and update playbook 2022-12-28 17:45:26 +01:00
LICENSE Cleanup and prepare for next event 2023-09-18 23:09:13 +02:00
README.md Create first WK24 Stuff 2024-02-21 01:38:06 +01:00
ansible.cfg Cleanup and prepare for next event 2023-09-18 23:09:13 +02:00
hosts.ini Update streaming keys hostnames 2024-02-26 16:08:14 +01:00
requirements.txt Create first WK24 Stuff 2024-02-21 01:38:06 +01:00
requirements.yml Cleanup and prepare for next event 2023-09-18 23:09:13 +02:00
site.yml Loudnessdock 2024-02-26 21:34:22 +01:00

README.md

Ansible Playbook WINDOWS OBS Setup

Ansible Playbook to Setup a Windows 10 Enterprise Host to Stream with OBS.

WORK IN PROGRESS -> This version of the ansible playbook is not designed to deploy an productive winkekatze.tv setup. For productive Setups please have a look at our releases. Next Release will be for "Winterkongress 2024"

Requirements

On ansible

pip install --upgrade -r requirements.txt

On Windows

Your Windows 10 Host has the following Software Requirements bevore starting ansible usage (based on windows_setup.html#host-requirements:

  • PowerShell version 3.0 or newer
  • .NET Framework 4.0 or newer

This Playbook is only tested at Windows 10 Enterprise

How to get the Version Numbers

Powershell

# In your Powershell
Get-Host | Select-Object Version

.NET Framework

# In your Powershell
(Get-ItemProperty "HKLM:SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full").Version

Windows Version

# In your Powershell
(Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").ProductName

Set up this git Repository

  • Clone this git repo
  • Check out all Submodules e.G. with git submodule update --init --recursive
  • Configure git to always update submodules on pull: git config submodule.recurse true

Set up Ansible

Make Sure you have the latest version of ansible installed. And all git submodules are checked out and at the latest version.

python3 -m venv ansible
source ansible/bin/activate
pip install ansible

Install sshpass fo SSH with Passwords to windows via ansible

sudo apt install sshpass

Configure Ansible Access (Windows SSH Server Setup)

Have a look at the official Ansible Docs and install OpenSSH Server on Windows or WinRM by running the ConfigureRemotingForAnsible.ps1 script.

Gopass Passwords

  • Make sure you have gopass installed
  • Checkout the gopass repo and mount in to chvoc.

validate access

After you installed the required deploy host python packages you can verify that the access is working by running the following ad-hoc command

ansible -m ansible.builtin.win_ping all

Windows Installation

There is a prepared autounattend.xml to automate the windows installation, that will create an setup User.

Ad-hoc copy file example:

# create C:\media\
ansible -m ansible.windows.win_file -a "path='C:\media' state=directory" all

# copy file
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.