desktop-config/roles/media-tools/tasks/main.yml

33 lines
825 B
YAML
Raw Normal View History

2023-11-26 23:01:59 +01:00
- name: Add Spotify repository
2023-12-03 19:19:38 +01:00
become: yes
2023-11-26 23:01:59 +01:00
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
2023-12-03 19:19:38 +01:00
update_cache: true
2023-11-26 23:01:59 +01:00
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"