--- resolv_configuration_file: /etc/resolv.conf resolv_dns_servers: - ip: 1.1.1.1 file: "{{ resolv_configuration_file }}.head" - ip: 8.8.8.8 file: "{{ resolv_configuration_file }}.tail"