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