ansible-toolkit icon indicating copy to clipboard operation
ansible-toolkit copied to clipboard

Display host groups a server is a member of

Open esacteksab opened this issue 10 years ago • 3 comments

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

esacteksab avatar Jul 23 '15 14:07 esacteksab

Also would be nice to have something like this:

atk-show-hosts host_group1
server1
server2
...

ldx avatar Jul 23 '15 15:07 ldx

I like this and need something like it right now.

dellis23 avatar Jul 29 '15 18:07 dellis23

I still like this and still need something like this right now.

dellis23 avatar Sep 09 '15 18:09 dellis23