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