--- # file: set_hostnames.yml - hosts: "{{ target }}" user: root roles: - { role: set_hostname }