From 6cdab4e68bc1c5cd8e4ad224a0fdc686fe8a0d5f Mon Sep 17 00:00:00 2001 From: Gregory Colpart Date: Tue, 27 Dec 2016 20:14:47 +0100 Subject: [PATCH] evolinux-base: don't use /etc/apt/listchanges.conf before apt-listchanges install --- evolinux-base/tasks/apt.yml | 9 --------- evolinux-base/tasks/system.yml | 10 ++++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/evolinux-base/tasks/apt.yml b/evolinux-base/tasks/apt.yml index e6bc28b5..42f620c9 100644 --- a/evolinux-base/tasks/apt.yml +++ b/evolinux-base/tasks/apt.yml @@ -51,15 +51,6 @@ # TODO: use ini_file when Ansible > 2.1 (no_extra_spaces: yes) -- name: Configure Listchanges - lineinfile: - dest: /etc/apt/listchanges.conf - regexp: '^{{ item.option }}\s*=' - line: "{{ item.option }}={{ item.value }}" - with_items: - - { option: "confirm", value: "1" } - - { option: "which", value: "both" } - - name: Remove Aptitude apt: name: aptitude diff --git a/evolinux-base/tasks/system.yml b/evolinux-base/tasks/system.yml index 7a444b64..9a5a1816 100644 --- a/evolinux-base/tasks/system.yml +++ b/evolinux-base/tasks/system.yml @@ -115,3 +115,13 @@ regexp: "allow-hotplug" replace: "auto" backup: yes + +- name: Configure Listchanges + lineinfile: + dest: /etc/apt/listchanges.conf + regexp: '^{{ item.option }}\s*=' + line: "{{ item.option }}={{ item.value }}" + with_items: + - { option: "confirm", value: "1" } + - { option: "which", value: "both" } +