From 7f50ace44f556cf67d269e0d88e24c4cd6a7b136 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 26 Feb 2024 22:36:50 +0100 Subject: [PATCH] install an extract loudness meter dock --- roles/l3d.loundnessdock/tasks/install.yml | 15 +++++++++++++++ roles/l3d.loundnessdock/tasks/main.yml | 4 ++++ roles/l3d.loundnessdock/tasks/plugin.yml | 5 ----- 3 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 roles/l3d.loundnessdock/tasks/install.yml diff --git a/roles/l3d.loundnessdock/tasks/install.yml b/roles/l3d.loundnessdock/tasks/install.yml new file mode 100644 index 0000000..825731f --- /dev/null +++ b/roles/l3d.loundnessdock/tasks/install.yml @@ -0,0 +1,15 @@ +- name: Check if already installed + ansible.windows.win_stat: + path: 'C:\Program Files\obs-studio\obs-plugins\64bit\obs-loudness-dock.dll' + register: _installed + +- name: Check if already installed + ansible.builtin.debug: + msg: "{{ _installed['stat']['exists'] }}" + verbosity: 1 + +- 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\' + when: not _installed['stat']['exists'] diff --git a/roles/l3d.loundnessdock/tasks/main.yml b/roles/l3d.loundnessdock/tasks/main.yml index 6ed48c0..e2b1abf 100644 --- a/roles/l3d.loundnessdock/tasks/main.yml +++ b/roles/l3d.loundnessdock/tasks/main.yml @@ -6,3 +6,7 @@ - name: Download plugin ansible.builtin.include_tasks: file: 'plugin.yml' + +- name: Install to OBS dir + ansible.builtin.include_tasks: + file: 'install.yml' diff --git a/roles/l3d.loundnessdock/tasks/plugin.yml b/roles/l3d.loundnessdock/tasks/plugin.yml index 7ee9c9d..90a6a03 100644 --- a/roles/l3d.loundnessdock/tasks/plugin.yml +++ b/roles/l3d.loundnessdock/tasks/plugin.yml @@ -3,8 +3,3 @@ 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\'