How to enumerate hostvars into a role setting in Ansible

So I’m using a role to configure my postgresql server. That tole has a way of specifying server users & databases, like so: postgresql_users: – name: baz My hosts.yaml: all: hosts: children: django: hosts: django_1: username: django1 userpass: django1_pass django_2: username: django2 userpass: django2_pass db: hosts: db1: Any my playbook.yaml: – hosts: db become: true…