From 95cca5e00155c566c340266a4e684dda21115187 Mon Sep 17 00:00:00 2001 From: Thomas Schneider <thomas@fsmpi.rwth-aachen.de> Date: Fri, 24 Feb 2023 14:27:34 +0100 Subject: [PATCH] desktop: Prevent apt from installing really unwanted packages --- desktop/files/apt-pin | 3 +++ desktop/tasks/main.yml | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 desktop/files/apt-pin diff --git a/desktop/files/apt-pin b/desktop/files/apt-pin new file mode 100644 index 0000000..0923a01 --- /dev/null +++ b/desktop/files/apt-pin @@ -0,0 +1,3 @@ +Package: plasma-nm network-manager cups-daemon plasma-discover +Pin: origin * +Pin-Priority: -1 diff --git a/desktop/tasks/main.yml b/desktop/tasks/main.yml index ffea1c0..98706da 100644 --- a/desktop/tasks/main.yml +++ b/desktop/tasks/main.yml @@ -1,5 +1,12 @@ --- -# file: roles/client/tasks/main.yml + +- name: Prevent apt from installing really unwanted packages + copy: + src: apt-pin + dest: /etc/apt/preferences.d/client + owner: root + group: root + mode: "0644" - include: kde.yml - meta: flush_handlers -- GitLab