2016-11-07 14:00:57 +01:00
|
|
|
# squid
|
|
|
|
|
2017-08-23 01:03:07 +02:00
|
|
|
Installation and configuration of Squid
|
2016-11-07 14:00:57 +01:00
|
|
|
|
|
|
|
## Tasks
|
|
|
|
|
|
|
|
Everything is in the `tasks/main.yml` file.
|
|
|
|
|
2017-01-05 18:21:57 +01:00
|
|
|
A blank file is created at `/etc/squid3/whitelist-custom.conf` to add addresses in the whitelist.
|
|
|
|
|
2016-11-07 14:00:57 +01:00
|
|
|
## Available variables
|
|
|
|
|
|
|
|
* `squid_address` : IP address for internal/outgoing traffic (default: Ansible detected IPv4 address) ;
|
2017-04-04 11:52:08 +02:00
|
|
|
* `squid_whitelist_items` : list of URL to add to the whitelist (default: `[]`) ;
|
2017-08-23 01:03:07 +02:00
|
|
|
* `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`) ;
|
2016-11-07 14:00:57 +01:00
|
|
|
* `log2mail_alert_email`: email address to send Log2mail messages to (default: `general_alert_email`).
|
|
|
|
|
2017-08-23 01:03:07 +02:00
|
|
|
|
2016-11-07 14:00:57 +01:00
|
|
|
The full list of variables (with default values) can be found in `defaults/main.yml`.
|
2019-09-12 16:05:37 +02:00
|
|
|
|
|
|
|
**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.
|