evolinux-base: remove apt-listchanges on Stretch and later
This commit is contained in:
parent
54f44f0443
commit
3e37800994
|
@ -15,6 +15,7 @@ The **patch** part changes incrementally at each release.
|
||||||
* etc-git: ignore evobackup/.keep-* files
|
* etc-git: ignore evobackup/.keep-* files
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
* evolinux-base: remove apt-listchanges on Stretch and later
|
||||||
* tomcat: better tomcat version management
|
* tomcat: better tomcat version management
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -113,16 +113,25 @@
|
||||||
|
|
||||||
# TODO: use ini_file when Ansible > 2.1 (no_extra_spaces: yes)
|
# TODO: use ini_file when Ansible > 2.1 (no_extra_spaces: yes)
|
||||||
|
|
||||||
- name: Configure Listchanges
|
- name: Configure Listchanges on Jessie
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/apt/listchanges.conf
|
dest: /etc/apt/listchanges.conf
|
||||||
regexp: '^{{ item.option }}\s*='
|
regexp: '^{{ item.option }}\s*='
|
||||||
line: "{{ item.option }}={{ item.value }}"
|
line: "{{ item.option }}={{ item.value }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { option: "confirm", value: "1" }
|
- { option: "confirm", value: "1" }
|
||||||
- { option: "which", value: "both" }
|
- { option: "which", value: "both" }
|
||||||
when:
|
when:
|
||||||
- evolinux_packages_listchanges
|
- evolinux_packages_listchanges
|
||||||
- ansible_distribution_release == "jessie"
|
- 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
|
- meta: flush_handlers
|
||||||
|
|
Loading…
Reference in a new issue