Mirror of Windows OBS Playbook
Go to file
L3D 8869cb4f4d
Add final notice to SPS22
2022-12-27 21:36:35 +01:00
group_vars/obs update 2022-09-21 14:35:33 +02:00
host_vars/obs-studio Label for SPS22 2022-09-14 23:29:29 +02:00
roles update config and hostnames 2022-02-25 00:07:52 +01:00
.gitignore install stramdeck 2021-12-26 20:12:22 +01:00
.gitmodules update szenes and obs files 2022-02-17 03:21:05 +01:00
.yamllint improve installation, adding features and packages 2021-12-20 19:56:51 +01:00
LICENSE initialize git Repo 2021-12-13 22:14:34 +01:00
README.md Add final notice to SPS22 2022-12-27 21:36:35 +01:00
ansible.cfg update 2022-09-21 14:35:33 +02:00
hosts.ini Label for SPS22 2022-09-14 23:29:29 +02:00
site.yml update szenes and obs files 2022-02-17 03:21:05 +01:00

README.md

Ansible Playbook WINDOWS OBS Setup

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

Swiss Python Summit 2022 Edition -> This version of the ansible playbook is designed deploy the winkekatze.tv setup for Swiss Python Summit 2022!

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

Configure Ansible Access (WinRM Setup)

configure WinRM Access

Configure WinRM with the ConfigureRemotingForAnsible.ps1 Script as described in docs.ansible.com/ansible/latest/user_guide/windows_setup.html#winrm-setup in your WINDOWS PowerShell.

configure ansible setup

  • add your host to the hosts.ini file.
  • add the following variables in the host_vars:
---
# host_vars/$hostname/vars.yml
ansible_connection: winrm
ansible_user: 'Windows_Admin_User'
ansible_password: 'Your_Windows_Admin_Password'
ansible_winrm_server_cert_validation: ignore

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

Ansible deploy host requirements

pip install pywinrm

Name convention

Use obs-$name with any name of My little Pony villans.

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