ansible-roles/squid
Jérémy Lecour 1728eaee68
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
Revert "Add “when: not ansible_check_mode” to allow more --check"
This reverts commit fafff25c20.
This reverts commit e64471c5a8084f95a8e6f955d3fa918c55b8e846.
2022-12-14 07:41:18 +01:00
..
defaults minifirewall: compatibility with "legacy" version of minifirewall 2022-04-28 12:40:02 +02:00
files squid: whitelist deb.freexian.com 2022-10-03 18:54:05 +02:00
handlers Revert "Add “when: not ansible_check_mode” to allow more --check" 2022-12-14 07:41:18 +01:00
meta Update Galaxy metadata (company, platforms and galaxy_tags) 2021-06-28 15:26:28 +02:00
tasks Revert "Add “when: not ansible_check_mode” to allow more --check" 2022-12-14 07:41:18 +01:00
templates squid: must be started in foreground mode for systemd 2021-07-02 23:45:42 +02: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

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.