31 lines
788 B
YAML
31 lines
788 B
YAML
- name: Add Spotify repository
|
|
deb822_repository:
|
|
name: spotify
|
|
types: deb
|
|
uris: http://repository.spotify.com
|
|
suites: stable
|
|
components: non-free
|
|
signed_by: https://download.spotify.com/debian/pubkey_7A3A762FAFD4A51F.gpg
|
|
state: present
|
|
enabled: yes
|
|
|
|
- name: Install packages
|
|
become: yes
|
|
apt:
|
|
state: latest
|
|
install_recommends: false
|
|
name:
|
|
- vlc
|
|
- vlc-plugin-pipewire
|
|
- spotify-client
|
|
|
|
- name: Ensure that directory for desktop entries exists
|
|
file:
|
|
path: "{{ ansible_env.HOME }}/.local/share/applications"
|
|
recurse: yes
|
|
state: directory
|
|
|
|
- name: Create Spotify desktop entry
|
|
copy:
|
|
src: "{{ role_path }}/files/spotify.desktop"
|
|
dest: "{{ ansible_env.HOME }}/.local/share/applications/spotify.desktop" |