33 lines
625 B
YAML
33 lines
625 B
YAML
---
|
|
- hosts: adm
|
|
vars:
|
|
- proxy_port: 8080
|
|
- proxy_mem: 256
|
|
- proxy_localnet: 192.168.0.0/24
|
|
tasks:
|
|
- name: Installation de proxy squid...
|
|
apt:
|
|
name: squid
|
|
state: present
|
|
|
|
- name: generation du fichier de configuration de squid...
|
|
template:
|
|
src: squid.conf.j2
|
|
dest: /etc/squid/squid.conf
|
|
mode: 0644
|
|
backup: true
|
|
notify: restart squid
|
|
|
|
handlers:
|
|
- name: restart squid
|
|
service:
|
|
name: squid
|
|
state: restarted
|
|
|
|
# - name: Copie de squid.conf...
|
|
# fetch:
|
|
# src: /etc/squid/squid.conf
|
|
# dest: ./squid.conf.j2
|
|
# flat: yes
|
|
|