desktop-config/roles/spotify/tasks/main.yml

31 lines
785 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
2024-02-25 20:30:31 +01:00
signed_by: https://download.spotify.com/debian/pubkey_6224F9941A8AA6D1.gpg
2023-11-26 23:01:59 +01:00
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:
- 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"