From 06e2e847e9308617b892e8f5cc58825a11c52762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sun, 3 Oct 2021 15:44:59 +0200 Subject: [PATCH] Install spotify via paru on arch --- playbook.yml | 45 +++++++++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/playbook.yml b/playbook.yml index f6dc36d..488742c 100644 --- a/playbook.yml +++ b/playbook.yml @@ -453,24 +453,37 @@ tags: [yubikey-touch-detector] - block: - - name: add spotify apt key - apt_key: - url: "https://download.spotify.com/debian/pubkey_0D811D58.gpg" - id: "D1742AD60D811D58" - become: true + - block: + - name: add spotify apt key + apt_key: + url: "https://download.spotify.com/debian/pubkey_0D811D58.gpg" + id: "D1742AD60D811D58" + become: true - - name: add spotify repository - apt_repository: - repo: "deb http://repository.spotify.com stable non-free" - filename: spotify - become: true + - name: add spotify repository + apt_repository: + repo: "deb http://repository.spotify.com stable non-free" + filename: spotify + 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] - block: