squid: remove obsolete variable on Squid 4

This commit is contained in:
Jérémy Lecour 2021-05-01 22:24:40 +02:00 committed by Jérémy Lecour
parent f673ea85d1
commit c5ab0c0ff9
3 changed files with 10 additions and 1 deletions

View File

@ -22,6 +22,8 @@ The **patch** part changes incrementally at each release.
* listupgrade: upstream release 21.06.3
* mysql: mariadb-client-10.5 on Debian 11
* mysql: use python3 with Debian 11 and later
* ntpd: Add leapfile configuration setting to ntpd on debian 10+
* squid: remove obsolete variable on Squid 4
### Fixed

View File

@ -22,6 +22,13 @@
- squidclient
state: present
- name: Fetch packages
package_facts:
manager: auto
- debug:
var: ansible_facts.packages[squid_daemon_name]
- name: "Set alternative config file (Debian 9 or later)"
copy:
src: default_squid

View File

@ -1,4 +1,4 @@
http_port 8888 transparent
cache deny all
ignore_expect_100 on
{% if ansible_facts.packages[squid_daemon_name][0]['version'] is version (4, '<') %}ignore_expect_100 on{% endif %}
tcp_outgoing_address {{ squid_address }}