--- - hosts: '{{ ip_addr }}' become: yes become_method: sudo gather_facts: yes tasks: - name: "[CONFIG RESOLV FILE] Configure resolv file" import_role: name: config-resolv