--- - hosts: all tasks: - name: Creation fichier /etc/resolv.conf copy: dest: "/etc/resolv.conf" content: | search sio.lan domain sio.lan nameserver 10.121.38.7 nameserver 10.121.38.8