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