Hm does anyone know how I can add #ansible hosts into a variable? For example, I'm trying to use this role: https://github.com/geerlingguy/ansible-role-haproxy
I want to add all the hosts in my "webservers" group, to the haproxy_backend_servers variable. Is that possible?
@mhamzahkhan https://docs.ansible.com/ansible/latest/reference_appendices/special_variables.html check for the groups variable, this should contain the hosts of that group, if I recall correct :)
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!