Install spotify via paru on arch
This commit is contained in:
45
playbook.yml
45
playbook.yml
@@ -453,24 +453,37 @@
|
|||||||
tags: [yubikey-touch-detector]
|
tags: [yubikey-touch-detector]
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: add spotify apt key
|
- block:
|
||||||
apt_key:
|
- name: add spotify apt key
|
||||||
url: "https://download.spotify.com/debian/pubkey_0D811D58.gpg"
|
apt_key:
|
||||||
id: "D1742AD60D811D58"
|
url: "https://download.spotify.com/debian/pubkey_0D811D58.gpg"
|
||||||
become: true
|
id: "D1742AD60D811D58"
|
||||||
|
become: true
|
||||||
|
|
||||||
- name: add spotify repository
|
- name: add spotify repository
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: "deb http://repository.spotify.com stable non-free"
|
repo: "deb http://repository.spotify.com stable non-free"
|
||||||
filename: spotify
|
filename: spotify
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
- name: install spotify
|
||||||
|
apt:
|
||||||
|
name: spotify-client
|
||||||
|
update_cache: true
|
||||||
|
become: true
|
||||||
|
when: distro == 'ubuntu'
|
||||||
|
|
||||||
|
- block:
|
||||||
|
- name: install spotify from AUR via paru
|
||||||
|
shell: |
|
||||||
|
curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | gpg --import
|
||||||
|
yes 1 | paru --skipreview --aur --batchinstall --noconfirm -S spotify
|
||||||
|
become: true
|
||||||
|
become_user: paru
|
||||||
|
args:
|
||||||
|
creates: /usr/bin/spotify
|
||||||
|
when: distro == 'archlinux'
|
||||||
|
|
||||||
- name: install spotify
|
|
||||||
apt:
|
|
||||||
name: spotify-client
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
||||||
when: distro == 'ubuntu'
|
|
||||||
tags: [spotify]
|
tags: [spotify]
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
|
|||||||
Reference in New Issue
Block a user