ansible-roles/squid
Benoît S. 1d7d2ce08d
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details
squid: Update regex for sa-update domains.
List of domains is like:

http://sa-update.dnswl.org/ weight=3

http://www.sa-update.pccc.com/ weight=5

http://sa-update.secnap.net/ weight=5

http://sa-update.space-pro.be/ weight=1

http://sa-update.ena.com/ weight=5

http://sa-update.razx.cloud/ weight=5

http://sa-update.fossies.org/ weight=1

http://sa-update.verein-clean.net/ weight=10

http://sa-update.bitwell.fi/ weight=5

http://sa-update.spamassassin.org/ weight=10

They all start sa-update.*, except for http://www.sa-update.pccc.com/.
In that case, we just match sa-update on the domain name.
2020-06-17 11:25:24 +09:00
..
defaults squid: minifirewall main file is configurable 2018-12-04 14:45:48 +01:00
files squid: Update regex for sa-update domains. 2020-06-17 11:25:24 +09: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.