ansible-toolkit
ansible-toolkit copied to clipboard
Display host groups a server is a member of
Scenario:
[host_group1]
server[1:9]
server11
server[13:20]
[host_group2]
server[2:5]
server[12]
It becomes challenging in the above scenario to determine which server is a member of which host group, it'd be great if atk had mechanism to show which host group(s) a server was a member of.
The other challenge that this addresses is that it is impossible to grep for a host that exists within a range (e.g. I can't grep for server2 as it is defined in a range rather than individually.
I imagine something like:
atk-show-group-membership server2
host_group1
host_group2
Also would be nice to have something like this:
atk-show-hosts host_group1
server1
server2
...
I like this and need something like it right now.
I still like this and still need something like this right now.