27 lines
418 B
YAML
27 lines
418 B
YAML
#
|
|
---
|
|
- hosts: adm
|
|
|
|
vars:
|
|
- proxy_port: 8080
|
|
- proxy_mem: 128
|
|
- proxy_localnet: 192.168.0.0/24
|
|
|
|
tasks:
|
|
- name: 1. installe squid
|
|
apt:
|
|
name: squid
|
|
state: present
|
|
|
|
- name: 2. Copie squid.conf
|
|
template:
|
|
src: squid.conf.j2
|
|
dest: /etc/squid/squid.conf
|
|
notify: Restart squid
|
|
|
|
handlers:
|
|
- name: Restart squid
|
|
service:
|
|
name: squid
|
|
state: restarted
|