Commit da5cd4ad authored by Elena Grandi's avatar Elena Grandi
Browse files

Install xournalpp from backports before fuss-education

parent bad205cf
......@@ -17,11 +17,42 @@
# Place, Suite 330, Boston, MA 02111-1307 USA
---
# Some of the packages we need are only available from backports, so they
# should be installed before the relevant metapackage.
- name: Define backport repo string
set_fact:
repo_string:
default: deb http://deb.debian.org/debian bullseye-backports main
unofficial: deb http://deb.debian.org/debian bullseye-backports main contrib non-free
- name: choose backport repo string
set_fact:
repo_choice: "{{ 'unofficial' if unofficial is defined and unofficial else 'default' }}"
- name: Enable bullseye-backports
lineinfile:
line: "{{ repo_string[repo_choice]}}"
path: /etc/apt/sources.list.d/deb_debian_org_debian.list
state: present
regexp: "deb http://deb.debian.org/debian bullseye-backports"
create: yes
register: backports_enabled
- name: Update apt cache
apt:
update_cache: yes
when: backports_enabled.changed
- name: Install fuss destkop and fuss metapackages
include: "{{includes}}/install-package-apt.yml"
with_items:
- fuss-desktop
- fuss-graphics,fuss-language-support,fuss-multimedia,fuss-extra-multimedia,fuss-net,fuss-office,fuss-various
- name: install xournalpp from backports
apt:
name: musescore3
state: present
default_release: bullseye-backports
update_cache: no
- name: Install educational fuss metapackages
include: "{{includes}}/install-package-apt.yml"
with_items:
......@@ -36,26 +67,6 @@
# installations.
# With bullseye, it can be moved back as a dependency of fuss-multimedia, and
# the following two tasks can be dropped.
- name: Define backport repo string
set_fact:
repo_string:
default: deb http://deb.debian.org/debian buster-backports main
unofficial: deb http://deb.debian.org/debian buster-backports main contrib non-free
- name: choose backport repo string
set_fact:
repo_choice: "{{ 'unofficial' if unofficial is defined and unofficial else 'default' }}"
- name: Enable buster-backports
lineinfile:
line: "{{ repo_string[repo_choice]}}"
path: /etc/apt/sources.list.d/deb_debian_org_debian.list
state: present
regexp: "deb http://deb.debian.org/debian buster-backports"
create: yes
register: backports_enabled
- name: Update apt cache
apt:
update_cache: yes
when: backports_enabled.changed
- name: Install metapackage dependencies from backports
apt:
name: musescore3
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment