From 99ad3ccf987f519084ae4086a0b2d1fe8376fa45 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 26 Feb 2024 21:34:22 +0100 Subject: [PATCH] Loudnessdock --- roles/l3d.loundnessdock/README.md | 6 ++++++ roles/l3d.loundnessdock/defaults/main.yml | 2 ++ roles/l3d.loundnessdock/tasks/directory.yml | 8 ++++++++ roles/l3d.loundnessdock/tasks/main.yml | 8 ++++++++ roles/l3d.loundnessdock/tasks/plugin.yml | 10 ++++++++++ roles/setup_secrets/templates/secrets.txt.j2 | 2 +- site.yml | 1 + 7 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 roles/l3d.loundnessdock/README.md create mode 100644 roles/l3d.loundnessdock/defaults/main.yml create mode 100644 roles/l3d.loundnessdock/tasks/directory.yml create mode 100644 roles/l3d.loundnessdock/tasks/main.yml create mode 100644 roles/l3d.loundnessdock/tasks/plugin.yml diff --git a/roles/l3d.loundnessdock/README.md b/roles/l3d.loundnessdock/README.md new file mode 100644 index 0000000..7bdd5ec --- /dev/null +++ b/roles/l3d.loundnessdock/README.md @@ -0,0 +1,6 @@ + Ansible role to install obs Plugin for EBU Loundnes DOCK +========================================================= + +https://obsproject.com/forum/resources/loudness-dock.1751/ + +https://github.com/norihiro/obs-loudness-dock/releases diff --git a/roles/l3d.loundnessdock/defaults/main.yml b/roles/l3d.loundnessdock/defaults/main.yml new file mode 100644 index 0000000..fd0de48 --- /dev/null +++ b/roles/l3d.loundnessdock/defaults/main.yml @@ -0,0 +1,2 @@ +--- +win_loundnessdoc__root: 'C:\obs\' diff --git a/roles/l3d.loundnessdock/tasks/directory.yml b/roles/l3d.loundnessdock/tasks/directory.yml new file mode 100644 index 0000000..2f44ec6 --- /dev/null +++ b/roles/l3d.loundnessdock/tasks/directory.yml @@ -0,0 +1,8 @@ +--- +- name: Create folder for obs szene loundness plugin + ansible.windows.win_file: + state: directory + path: '{{ item }}' + with_items: + - '{{ win_loundnessdoc__root }}' + - '{{ win_loundnessdoc__root }}\loundness' diff --git a/roles/l3d.loundnessdock/tasks/main.yml b/roles/l3d.loundnessdock/tasks/main.yml new file mode 100644 index 0000000..6ed48c0 --- /dev/null +++ b/roles/l3d.loundnessdock/tasks/main.yml @@ -0,0 +1,8 @@ +--- +- name: Create directorys + ansible.builtin.include_tasks: + file: 'directory.yml' + +- name: Download plugin + ansible.builtin.include_tasks: + file: 'plugin.yml' diff --git a/roles/l3d.loundnessdock/tasks/plugin.yml b/roles/l3d.loundnessdock/tasks/plugin.yml new file mode 100644 index 0000000..7ee9c9d --- /dev/null +++ b/roles/l3d.loundnessdock/tasks/plugin.yml @@ -0,0 +1,10 @@ +--- +- name: Download latest plugin windows zip + ansible.windows.win_get_url: + url: 'https://github.com/norihiro/obs-loudness-dock/releases/download/0.2.1/obs-loudness-dock-0.2.1-obs28-Windows.zip' + dest: '{{ win_loundnessdoc__root }}\loundness\obs-loudness-dock-0.2.1-obs28-Windows.zip' + +- name: Unzip Loudness Dock Plugin + community.windows.win_unzip: + src: '{{ win_streamdeck__root }}\loundness\obs-loudness-dock-0.2.1-obs28-Windows.zip' + dest: 'C:\Program Files\obs-studio\' diff --git a/roles/setup_secrets/templates/secrets.txt.j2 b/roles/setup_secrets/templates/secrets.txt.j2 index 06f6d7e..cd2c248 100644 --- a/roles/setup_secrets/templates/secrets.txt.j2 +++ b/roles/setup_secrets/templates/secrets.txt.j2 @@ -2,7 +2,7 @@ Streaming Keys: {% for host in groups['obs'] %} -+ {{ hostvars[host]['ansible_fqdn'] }}: ++ {{ hostvars[host]['ansible_fqdn'] | default(hostvars[host]['ansible_host']) }}: {{ lookup('community.general.passwordstore', 'chvoc/ansible/windows/' + hostvars[host]['inventory_hostname'] + '/portier/streamkey') }} {% endfor %} diff --git a/site.yml b/site.yml index d5ae9cd..7596878 100644 --- a/site.yml +++ b/site.yml @@ -20,6 +20,7 @@ - {role: do1jlr.win_streamdeck, tags: streamdeck} - {role: l3d.time, tags: time} - {role: l3d.wireguard, tags: wireguard} + - {role: l3d.loundnessdock, tags: dock} - {role: do1jlr.win_reaplugs236, tags: [reaper, obs, reaplugs236, reaplugs]} - {role: do1jlr.win_obs_szene, tags: [obs, szene]} # - {role: do1jlr.win_nextcloud, tags: nextcloud} # currently instalaltion not working