From 641d124d5f10751a76203259e7bf8cad1b390ed8 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Tue, 22 Feb 2022 16:04:18 +0100 Subject: [PATCH] toansible: Add lilypond installation --- configs.yml | 4 ---- playbook.yml | 2 ++ roles/lilypond/tasks/main.yml | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 roles/lilypond/tasks/main.yml diff --git a/configs.yml b/configs.yml index 83b2a43..de1947e 100644 --- a/configs.yml +++ b/configs.yml @@ -283,10 +283,6 @@ latex: - dotfiles/latexmkrc - ~/.latexmkrc -lilypond: - - install: - - lilypond - powershell: - clone: url: https://aur.archlinux.org/powershell-bin.git diff --git a/playbook.yml b/playbook.yml index 25c1c9f..36d140b 100644 --- a/playbook.yml +++ b/playbook.yml @@ -28,3 +28,5 @@ tags: tor - role: sudoers tags: sudoers + - role: lilypond + tags: lilypond diff --git a/roles/lilypond/tasks/main.yml b/roles/lilypond/tasks/main.yml new file mode 100644 index 0000000..9fdbe5e --- /dev/null +++ b/roles/lilypond/tasks/main.yml @@ -0,0 +1,15 @@ +--- + +- name: Install lilypond (Archlinux) + become: true + pacman: + name: + - lilypond + when: ansible_distribution == 'Archlinux' + +- name: Install lilypond (Debian) + become: true + apt: + name: + - lilypond + when: ansible_distribution == 'Debian'