renommé : sio2/SISR/09-ansible/syslog.yml -> sio2/SISR/09-ansible/rsyslog/syslog.yml supprimé : sio2/SISR/09-ansible/squid.conf.j2 renommé : sio2/SISR/09-ansible/squid.yml -> sio2/SISR/09-ansible/squid/squid.yml renommé : sio2/SISR/09-ansible/index.html -> sio2/SISR/09-ansible/web/index.html renommé : sio2/SISR/09-ansible/web.yml -> sio2/SISR/09-ansible/web/web.yml
30 lines
587 B
YAML
30 lines
587 B
YAML
---
|
|
- hosts: infra
|
|
vars:
|
|
proxy_port: 8080
|
|
proxy_mem: 128
|
|
proxy_localnet: "192.168.0.0/24"
|
|
|
|
tasks:
|
|
- name: installation de squid
|
|
apt:
|
|
name: squid
|
|
state: present
|
|
|
|
# - name: recup squid.conf
|
|
# fetch:
|
|
# src: /etc/squid/squid.conf
|
|
# dest: squid.conf.j2
|
|
# flat: yes
|
|
- name: constituer squid.conf.j2 a partir de squid.conf
|
|
template:
|
|
src: squid.conf.j2
|
|
dest: /etc/squid/squid.conf
|
|
notify: restart squid
|
|
|
|
handlers:
|
|
- name: restart squid
|
|
service:
|
|
name: squid
|
|
state: restarted
|