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\'