- Dockerfile 86.3%
- Jinja 13.7%
| .github/workflows | ||
| defaults | ||
| files | ||
| handlers | ||
| meta | ||
| molecule/default | ||
| tasks | ||
| templates/etc | ||
| tests | ||
| vars | ||
| .ansible-lint | ||
| .gitignore | ||
| .yamllint | ||
| Dockerfile | ||
| LICENSE.txt | ||
| README.md | ||
| requirements.yml | ||
| Vagrantfile | ||
tinyproxy
Set up tinyproxy in Debian-like systems.
Requirements
None
Variables
-
tinyproxy_install: [default:[]]: Additional packages to install -
tinyproxy_tinyproxy_conf: [see:defaults/main.yml]: List of lines to be added to/etc/tinyproxy.conf -
tinyproxy_port: [default:8888]: The port which tinyproxy will listen on -
tinyproxy_allow: [default:["{{ ansible_lo['ipv4']['address'] }}"]]: Customization of authorization controls. If there are any access controls then the default action is toDENY. Otherwise, the default action isALLOW. The order of the controls are important -
tinyproxy_connect_port: [default:[443, 563]]: This is a list of ports allowed when theCONNECTmethod is used. To disable theCONNECTmethod altogether, set the value to0. If no item is found, all ports are allowed
Dependencies
None
Example
Simple
---
- hosts: all
roles:
- tinyproxy
Advance
```yaml
---
- hosts: all
roles:
- tinyproxy
vars:
tinyproxy_tinyproxy_conf:
- |
User nobody
Group nogroup
Port {{ tinyproxy_port }}
Timeout 666
DefaultErrorFile "/usr/share/tinyproxy/default.html"
StatFile "/usr/share/tinyproxy/stats.html"
Logfile "/var/log/tinyproxy/tinyproxy.log"
LogLevel Info
PidFile "/var/run/tinyproxy/tinyproxy.pid"
MaxClients 100
MinSpareServers 5
MaxSpareServers 20
StartServers 10
MaxRequestsPerChild 0
{% for allow in tinyproxy_allow %}
Allow {{ allow }}
{% endfor %}
ViaProxyName "tinyproxy"
{% for connect_port in tinyproxy_connect_port %}
ConnectPort {{ connect_port }}
{% endfor %}
tinyproxy_port: 3128
tinyproxy_allow:
- "{{ ansible_lo['ipv4']['address'] }}"
- "{{ ansible_default_ipv4['address'] }}"
License
MIT
Author Information
Mischa ter Smitten
Feedback, bug-reports, requests, ...
Are welcome!