You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jérémy Lecour 1728eaee68
gitea/ansible-roles/pipeline/head This commit looks good Details
Revert "Add “when: not ansible_check_mode” to allow more --check"
2 months ago
defaults minifirewall: compatibility with "legacy" version of minifirewall 9 months ago
files squid: whitelist 4 months ago
handlers Revert "Add “when: not ansible_check_mode” to allow more --check" 2 months ago
meta Update Galaxy metadata (company, platforms and galaxy_tags) 2 years ago
tasks Revert "Add “when: not ansible_check_mode” to allow more --check" 2 months ago
templates squid: must be started in foreground mode for systemd 2 years ago
tests Add tests for many roles 6 years ago
.kitchen.yml Kitchen: Change base image to evolix/ansible 6 years ago squid: add a warning about local mode in the README 3 years ago


Installation and configuration of Squid


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.