2022-10-11 11:01:29 +02:00

31 lines
587 B
YAML

---
- hosts: adm
vars:
- proxy_port: 8080
- proxy_mem: 128
- localnet: "192.168.0.0/24"
tasks:
- name: installation squid
apt:
name: squid
state: present
- name: generation fichier de conf à partir de la template
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: recuperer fichier de conf squid
# fetch:
# src: /etc/squid/squid.conf
# dest: ./squid.conf