--- - hosts: tasks: - name: install squid apt : name: squid state: present - name: mise en place du fichier de conf template: src: squid.conf.j2 dest: /etc/squid/squid.conf notify: - restart squid