[bastion]
%{ for bastion in bastion_hosts ~}
${bastion} ansible_connection=ssh ansible_user=${rhel_username}
%{ endfor ~}

%{ if bootstrap_host != "" ~}
[bootstrap]
${bootstrap_host} ansible_connection=ssh ansible_user=core
%{ endif ~}

[masters]
%{ for master in master_hosts ~}
${master} ansible_connection=ssh ansible_user=core
%{ endfor ~}

[workers]
%{ for worker in worker_hosts ~}
${worker} ansible_connection=ssh ansible_user=core
%{ endfor ~}
