Skip to content

Instantly share code, notes, and snippets.

@xhiroga
Created April 29, 2024 13:54
Show Gist options
  • Save xhiroga/d31ec68705044505bcfb272c1bbc64d8 to your computer and use it in GitHub Desktop.
Save xhiroga/d31ec68705044505bcfb272c1bbc64d8 to your computer and use it in GitHub Desktop.
Enable Blu-lay in VLC (but I couldn't succeed)
## References
# https://vlc-bluray.whoknowsmy.name/
---
- name: Create temporary directory for downloads
ansible.windows.win_tempfile:
state: directory
suffix: downloads
register: temp_dir
- name: Download keydb_eng.zip
ansible.windows.win_get_url:
url: 'http://fvonline-db.bplaced.net/export/keydb_eng.zip'
dest: '{{ temp_dir.path }}\keydb_eng.zip'
- name: Download libaacs.dll
ansible.windows.win_get_url:
url: 'https://vlc-bluray.whoknowsmy.name/files/win64/libaacs.dll'
dest: '{{ temp_dir.path }}\libaacs.dll'
- name: Unzip keydb_eng.zip
community.windows.win_unzip:
src: '{{ temp_dir.path }}\keydb_eng.zip'
dest: '{{ temp_dir.path }}'
- name: Ensure aacs folder exists
ansible.windows.win_file:
path: 'C:\ProgramData\aacs\'
state: directory
- name: Copy keydb.cfg to aacs folder
ansible.windows.win_copy:
src: '{{ temp_dir.path }}\keydb.cfg'
dest: 'C:\ProgramData\aacs\'
remote_src: yes
- name: Copy libaacs.dll to VLC folder
ansible.windows.win_copy:
src: '{{ temp_dir.path }}\libaacs.dll'
dest: 'C:\Program Files\VideoLAN\VLC\'
remote_src: yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment