24 lines
457 B
YAML
24 lines
457 B
YAML
---
|
|
- name: squid-j2.yml
|
|
hosts: infra
|
|
vars:
|
|
- proxy_port: 8080
|
|
- proxy_mem: 512
|
|
tasks:
|
|
- name: 1. assurer que squid est installe
|
|
service:
|
|
name: squid
|
|
state: started
|
|
|
|
- name: 2. Copie du squid.conf apres generation dynamique
|
|
template:
|
|
src: squid.conf.j2
|
|
dest: /etc/squid/squid.conf
|
|
notify: restart squid
|
|
|
|
handlers:
|
|
- name: restart squid
|
|
service:
|
|
name: squid
|
|
state: restarted
|