evolinux-base: remove apt-listchanges on Stretch and later

This commit is contained in:
Jérémy Lecour 2019-03-05 11:10:12 +01:00 committed by Jérémy Lecour
parent 54f44f0443
commit 3e37800994
2 changed files with 15 additions and 5 deletions

View File

@ -15,6 +15,7 @@ The **patch** part changes incrementally at each release.
* etc-git: ignore evobackup/.keep-* files
### Changed
* evolinux-base: remove apt-listchanges on Stretch and later
* tomcat: better tomcat version management
### Fixed

View File

@ -113,16 +113,25 @@
# TODO: use ini_file when Ansible > 2.1 (no_extra_spaces: yes)
- name: Configure Listchanges
- name: Configure Listchanges on Jessie
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" }
- { option: "confirm", value: "1" }
- { option: "which", value: "both" }
when:
- evolinux_packages_listchanges
- ansible_distribution_release == "jessie"
- evolinux_packages_listchanges
- ansible_distribution == "Debian"
- ansible_distribution_release == "jessie"
- name: apt-listchanges is absent on Stretch and later
apt:
name: apt-listchanges
state: absent
when:
- ansible_distribution == "Debian"
- ansible_distribution_major_version | version_compare('9', '>=')
- meta: flush_handlers