Ansible Playbook to Setup a Windows 10 Enterprise Host to Stream with OBS.
Find a file
2023-02-21 00:20:12 +01:00
group_vars/obs update wk23 stuff 2023-01-01 03:53:28 +01:00
roles Audiometer 2023-02-21 00:20:12 +01:00
.gitignore install stramdeck 2021-12-26 20:12:22 +01:00
.gitmodules Add unatended xml and windows activation 2022-12-31 20:11:33 +01:00
.yamllint improve linting, update modules and update playbook 2022-12-28 17:45:26 +01:00
ansible.cfg Adding artwork 2022-12-31 16:43:56 +01:00
autounattend.xml update preseed 2023-01-01 00:06:06 +01:00
hosts.ini Win aktivation 2022-12-31 22:59:56 +01:00
LICENSE initialize git Repo 2021-12-13 22:14:34 +01:00
README.md update preseed 2023-01-01 00:06:06 +01:00
requirements.yml improve linting, update modules and update playbook 2022-12-28 17:45:26 +01:00
site.yml update wk23 stuff 2023-01-01 03:53:28 +01:00

Ansible Playbook WINDOWS OBS Setup

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!

Requirements

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

Ansible Requirements

ansible-galaxy install -r requirements.yml

Install sshpass fo SSH with Passwords to windowsvia 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 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