From a1030f3639976cdc05f55f49e66cdfce062418f9 Mon Sep 17 00:00:00 2001 From: Christian Heller <c.heller@plomlompom.de> Date: Sun, 10 Sep 2017 13:22:51 +0200 Subject: [PATCH] Fix some more bugs in new ansible tree. --- ansible/config_new.yml | 4 ++-- ansible/files/apt-mark_new/X200s/minimal_x | 3 --- ansible/files/apt-mark_new/{W530 => minimal}/minimal_x | 0 ansible/files/console/___etc___default___keyboard | 1 + 4 files changed, 3 insertions(+), 5 deletions(-) delete mode 100644 ansible/files/apt-mark_new/X200s/minimal_x rename ansible/files/apt-mark_new/{W530 => minimal}/minimal_x (100%) diff --git a/ansible/config_new.yml b/ansible/config_new.yml index 2f86ac3..55ecd90 100644 --- a/ansible/config_new.yml +++ b/ansible/config_new.yml @@ -71,7 +71,7 @@ # Ensure X window environment. - name: ensure minimal X window environment apt: name={{item}} state=present - with_lines: cat ~/config/ansible/files/apt-mark_new/{{ system_name }}/minimal_x | sed -e 's/ *#.*$//' + with_lines: cat ~/config/ansible/files/apt-mark_new/minimal/minimal_x | sed -e 's/ *#.*$//' #- name: ensure 3d acceleration and optimus switch # apt: name={{item}} state=present # with_lines: cat ~/config/ansible/files/apt-mark/3d_acceleration | sed -e 's/ *#.*$//' @@ -105,7 +105,7 @@ # Remove undesired packages - name: collect desired packages - shell: cat files/apt-mark/minimal/* files/apt-mark_new/{{ system_name }}/* | sed -e 's/ *#.*$//' > /tmp/white_list_unsorted && sort /tmp/white_list_unsorted > /tmp/white_list_sorted + shell: cat files/apt-mark_new/minimal/* files/apt-mark_new/{{ system_name }}/* | sed -e 's/ *#.*$//' > /tmp/white_list_unsorted && sort /tmp/white_list_unsorted > /tmp/white_list_sorted - name: collect currently installed packages shell: dpkg-query -Wf '${Package}\n' > /tmp/all_unsorted && sort /tmp/all_unsorted > /tmp/all_sorted - name: create black list of packages to mark as automatically installed from the difference between the required packages and the packages currently installed diff --git a/ansible/files/apt-mark_new/X200s/minimal_x b/ansible/files/apt-mark_new/X200s/minimal_x deleted file mode 100644 index 04cbc9c..0000000 --- a/ansible/files/apt-mark_new/X200s/minimal_x +++ /dev/null @@ -1,3 +0,0 @@ -libpam-systemd # needed to start X as non-root -xinit # contains startx -xserver-xorg-core diff --git a/ansible/files/apt-mark_new/W530/minimal_x b/ansible/files/apt-mark_new/minimal/minimal_x similarity index 100% rename from ansible/files/apt-mark_new/W530/minimal_x rename to ansible/files/apt-mark_new/minimal/minimal_x diff --git a/ansible/files/console/___etc___default___keyboard b/ansible/files/console/___etc___default___keyboard index b8f918b..25a46b7 100644 --- a/ansible/files/console/___etc___default___keyboard +++ b/ansible/files/console/___etc___default___keyboard @@ -1 +1,2 @@ +XKBMODEL="pc105" # questionable, but works fine as default XKBLAYOUT="de" -- 2.30.2