vars: domains: - brocoli.be - patate.be tasks: ... - name: Configuration de nginx template: src: nginx.conf.j2 dest: /etc/nginx/sites-available/{{ item }} owner: root group: root mode: "0644" # équivalent à "u=rw,g=r,o=r" notify: Restart nginx loop: "{{ domains }}"