Anthony25.squid
squid
Installs Squid
Requirements
This role requires Ansible 1.9 or higher.
Role Variables
| Name | Default | Description |
|---|---|---|
| squid_access_log | "daemon:/var/log/{{ squid_service_name }}/access.log squid" | Configures whether and how Squid logs HTTP and ICP transactions |
| squid_acls | [] | List of ACL hashes (keys: name, type, argument) |
| squid_always_directs | [] | List of always_direct options (keys: type, acl_name) |
| squid_cache_peers | [] | List of cache peers (keys: hostname, type, http_port, icp_port, options
|
| squid_cache_dir | {} | Cache directory (keys: type, path, options) |
| squid_dns_v4_first | "off" | This option reverses the order of preference to make Squid contact dual-stack websites over IPv4 first |
| squid_forwarded_for | "on" | Set X-Forwarded-For header in HTTP requests |
| squid_http_access_allow_clients | ["localhost"] | List of clients to allow access |
| squid_http_port | 3128 | The port where Squid will listen for HTTP requests |
| squid_httpd_suppress_version_string | "off" | Suppress Squid version string info in HTTP headers and HTML error pages |
| squid_maximum_object_size | "" | Set the default value for max-size paramater on any cache dir |
| squid_netdb_filename | "stdio:stdio:/var/log/{{ squid_service_name }}/netdb.state" | Where Squid stores it's netdb journal |
| squid_never_directs | [] | List of never_direct options (keys: type, acl_name) |
| squid_pinger_enable | "on" | Control whether the pinger is active at run-time |
| squid_proxy_only | false | If enabled, disables caching |
| squid_refresh_patterns | [{ regex: "^ftp:", min: 1440, percent: "20%", max: 10080 }, { regex: "^gopher", min: 1440, percent: "0%", max: 1440 }, { case_ins: true, regex: "(/cgi-bin/|?)", min: 0, percent: "0%", max: 0 }, { regex: "(Release|Packages(.gz)*)$", min: 0, percent: "0%", max: 2880 }, { regex: ".", min: 0, percent: "20%", max: 4320 }] | Reverse patterns |
| squid_tcp_outgoing_address | '' | Map requests to different outgoing IP address |
| squid_via | "on" | If set (default), Squid will include a Via header in requests and replies are required by RFC2616 |
| squid_visible_hostname | '' | If you want to present a special hostname in error messages, etc, define this |
Dependencies
None
Example Playbook
Install Squid
- hosts: all
roles:
- kbrebanov.squid
License
BSD
Author Information
Kevin Brebanov
Install
ansible-galaxy install Anthony25.squidLicense
bsd-2-clause
Downloads
88
Owner
Old username. Moved to @aruhier
