Download and install OBS Exporter

This commit is contained in:
L3D 2024-02-28 01:04:14 +01:00
parent ac5caec194
commit 9e5f9e5e04
Signed by: l3d
GPG key ID: CD08445BFF4313D1
7 changed files with 48 additions and 2 deletions

View file

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2024 win_ansible
Copyright (c) 2024 L3D <l3d@c3woc.de>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View file

@ -1,3 +1,7 @@
# ansible_role_win_obs_studio_exporter
Ansible role to install the obs-studio exporter on windows.
Ansible role to install the obs-studio exporter on windows.
https://github.com/lukegb/obs_studio_exporter
Will download windows zip and extract to OBS default folder

2
defaults/main.yml Normal file
View file

@ -0,0 +1,2 @@
---
win_obs_exporter__root: 'C:\obs\'

8
tasks/directory.yml Normal file
View file

@ -0,0 +1,8 @@
---
- name: Create folder for obs szene loudness plugin
ansible.windows.win_file:
state: directory
path: '{{ item }}'
with_items:
- '{{ win_obs_exporter__root }}'
- '{{ win_obs_exporter__root }}\obs-exporter'

5
tasks/download.yml Normal file
View file

@ -0,0 +1,5 @@
---
- name: Download latest plugin windows zip
ansible.windows.win_get_url:
url: 'https://nightly.link/lukegb/obs_studio_exporter/workflows/build/canon/obs-studio-exporter-windows.zip'
dest: '{{ win_obs_exporter__root }}\obs-exporter\obs-studio-exporter-windows.zip'

15
tasks/install.yml Normal file
View file

@ -0,0 +1,15 @@
- name: Check if already installed
ansible.windows.win_stat:
path: 'C:\Program Files\obs-studio\obs-plugins\64bit\obs-studio-exporter.dll'
register: _installed
- name: Check if already installed
ansible.builtin.debug:
msg: "{{ _installed['stat']['exists'] }}"
verbosity: 1
- name: Unzip OBS Studio Exporter Plugin
community.windows.win_unzip:
src: '{{ win_obs_exporter__root }}\obs-exporter\obs-studio-exporter-windows.zip'
dest: 'C:\Program Files\obs-studio\obs-plugins\64bit\'
when: not _installed['stat']['exists']

12
tasks/main.yml Normal file
View file

@ -0,0 +1,12 @@
---
- name: Create Download dirs
ansile.builtin.include_tasks:
file: 'directory.yml'
- name: Download OBS Studio Exporter
ansible.builtin.include_tasks:
file: 'download.yml'
- name: Install OBS Exporter
ansible.builtin.include_tasks:
file: 'install.yml'