ansible-roles/squid
Jérémy Lecour 7283e34077 Replace version_compare() with version() 2020-02-25 10:45:35 +01:00
..
defaults squid: minifirewall main file is configurable 2018-12-04 14:45:48 +01:00
files squid: compatibility wit Debian 10 2019-10-24 16:23:48 +02:00
handlers Squid: restart minifirewall if needed 2017-09-20 10:30:24 +02:00
meta change repositories URL 2019-03-21 15:31:58 +01:00
tasks Replace version_compare() with version() 2020-02-25 10:45:35 +01:00
templates Squid: replace logrotate file if default 2017-12-28 11:16: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: add a warning about local mode in the README 2019-09-12 16:05:42 +02: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/squid3/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.