ansible-roles/squid
Jérémy Lecour fb7218972f
squid: config directory seems to have changed from /etc/squid3 to /etc/squid in Debian 8
2023-12-11 15:10:06 +01:00
..
defaults minifirewall: compatibility with "legacy" version of minifirewall 2022-04-28 12:40:02 +02:00
files whitelist domains used by nextcloud 2023-09-20 09:47:22 +02:00
handlers Use FQCN 2023-03-20 23:33:19 +01:00
meta Update Galaxy metadata (company, platforms and galaxy_tags) 2021-06-28 15:26:28 +02:00
tasks squid: config directory seems to have changed from /etc/squid3 to /etc/squid in Debian 8 2023-12-11 15:10:06 +01:00
templates squid: config directory seems to have changed from /etc/squid3 to /etc/squid in Debian 8 2023-12-11 15:10:06 +01:00
tests Add tests for many roles 2017-05-18 15:44:21 +02:00
.kitchen.yml Kitchen: Change base image to evolix/ansible 2017-06-02 08:38:08 -04:00
README.md squid: config directory seems to have changed from /etc/squid3 to /etc/squid in Debian 8 2023-12-11 15:10:06 +01:00

README.md

squid

Installation and configuration of Squid

Tasks

Everything is in the tasks/main.yml file.

A blank file is created at /etc/squid/whitelist-custom.conf to add addresses in the whitelist.

Available variables

  • squid_address : IP address for internal/outgoing traffic (default: Ansible detected IPv4 address) ;
  • squid_whitelist_items : list of URL to add to the whitelist (default: []) ;
  • squid_localproxy_enable : enable configuration for squid as local proxy (default: False) ;
  • general_alert_email: email address to send various alert messages (default: root@localhost) ;
  • log2mail_alert_email: email address to send Log2mail messages to (default: general_alert_email).

The full list of variables (with default values) can be found in defaults/main.yml.

Warning : if squid has been installed with squid_localproxy_enable: False, it can't be simply switched to True and re-run. You have to purge the squid package, remove the configuration rm -rf /etc/squid* /etc/default/squid* and then re-run the playbook.