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