cachy-workstation

Log | Files | Refs | README

main.yml (628B)


      1 ---
      2 - name: Install flatpak
      3   community.general.pacman:
      4     name: flatpak
      5     state: present
      6 
      7 - name: Install wanted flatpak packages
      8   community.general.flatpak:
      9     name: "{{ flatpak_apps }}"
     10     state: present
     11 
     12 - name: Check MakeMKV flatpak permissions
     13   ansible.builtin.command:
     14     cmd: flatpak info --show-permissions com.makemkv.MakeMKV
     15   register: flatpak_makemkv_permissions
     16   changed_when: false
     17 
     18 - name: Grant MakeMKV access to optical drives
     19   ansible.builtin.command:
     20     cmd: flatpak override --device=all com.makemkv.MakeMKV
     21   when: "'--device=all' not in flatpak_makemkv_permissions.stdout"
     22   changed_when: true