/ansible-squid

setup Squid proxy

Primary LanguageRubyBSD 2-Clause "Simplified" LicenseBSD-2-Clause

Actions Status - Master Actions Status - Devel

Squid ansible role

Ansible role to setup a secure and clean Squid proxy with

  • Dansguardian for url filtering (port 8080)
  • clamav daemon for malware scanning (through dansguardian)
  • ads filtering (through dansguardian)
  • squid after (port 3128)

On centos, for now, only have squidGuard (configuration as work in progress). HTTPS supported only on centos as Ubuntu squid is missing compilation flags.

Requirements & Dependencies

Ansible

It was tested on the following versions:

  • 1.9
  • 2.0
  • 2.2
  • 2.5
  • 2.10

Operating systems

Tested Ubuntu 16.04, 18.04, 20.04 and centos7-8

Example Playbook

Just include this role in your list. For example

- host: all
  roles:
    - juju4.squid

Variables

Nothing specific for now.

Continuous integration

This role has a travis basic test (for github), more advanced with kitchen and also a Vagrantfile (test/vagrant).

Once you ensured all necessary roles are present, You can test with:

$ cd /path/to/roles/juju4.squid
$ kitchen verify
$ kitchen login

or

$ cd /path/to/roles/juju4.squid/test/vagrant
$ vagrant up
$ vagrant ssh

Troubleshooting & Known issues

License

BSD 2-clause