--- # file: set_hostnames.yml - hosts: infra gather_facts: no user: ubuntu sudo: true roles: - { role: set_hostnames }