diff --git a/README.md b/README.md index 44e1732..a98ec30 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ # win_ansible_role_reaplugs236 -Windows Ansible role to install the reaplugs236 OBS Reaper Plugin \ No newline at end of file +Windows Ansible role to install the reaplugs236 OBS Reaper Plugin: +https://www.reaper.fm/reaplugs/ diff --git a/defaults/main.yml b/defaults/main.yml new file mode 100644 index 0000000..79fa79d --- /dev/null +++ b/defaults/main.yml @@ -0,0 +1,4 @@ +--- +win_reaplugs__srv: 'https://www.reaper.fm/reaplugs' +win_reaplugs__file: 'reaplugs236_x64-install.exe' +win_reaplugs__installpath: 'C:\Program Files\VSTPlugins\ReaPlugs' diff --git a/tasks/download.yml b/tasks/download.yml new file mode 100644 index 0000000..fd99f65 --- /dev/null +++ b/tasks/download.yml @@ -0,0 +1,14 @@ +--- +- name: Create OBS dir + ansible.windows.win_file: + path: C:\OBS + state: directory + +- name: download reaper plugin + ansible.windows.win_get_url: + url: "{{ win_reaplugs__srv }}/{{ win_reaplugs__file }}" + dest: C:\OBS\{{ win_reaplugs__file }} + +- name: "Please install the plugin manually from the /OBS/ directory" + ansible.builtin.pause: + prompt: "Confirm when you installed the plugin" diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..8e071ec --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,10 @@ +--- +- name: verify if plugin is probably installed + ansible.windows.win_stat: + path: "{{ win_reaplugs__installpath }}" + register: folder_info + +- name: download reaper plugin + ansible.builtin.include_tasks: download.yml + when: + - not folder_info.stat.exists | bool