forked from evolix/ansible-roles
squid: remove obsolete variable on Squid 4
This commit is contained in:
parent
f673ea85d1
commit
c5ab0c0ff9
|
@ -22,6 +22,8 @@ The **patch** part changes incrementally at each release.
|
||||||
* listupgrade: upstream release 21.06.3
|
* listupgrade: upstream release 21.06.3
|
||||||
* mysql: mariadb-client-10.5 on Debian 11
|
* mysql: mariadb-client-10.5 on Debian 11
|
||||||
* mysql: use python3 with Debian 11 and later
|
* 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
|
### Fixed
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,13 @@
|
||||||
- squidclient
|
- squidclient
|
||||||
state: present
|
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)"
|
- name: "Set alternative config file (Debian 9 or later)"
|
||||||
copy:
|
copy:
|
||||||
src: default_squid
|
src: default_squid
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
http_port 8888 transparent
|
http_port 8888 transparent
|
||||||
cache deny all
|
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 }}
|
tcp_outgoing_address {{ squid_address }}
|
||||||
|
|
Loading…
Reference in a new issue