better handling of diff key types in compose

also made separator configurable
fixed some exception types
better error msgs
This commit is contained in:
Brian Coca 2018-03-29 17:10:32 -04:00 committed by Brian Coca
parent 38491fe93d
commit c679186f17
2 changed files with 42 additions and 27 deletions

View file

@ -43,7 +43,8 @@ EXAMPLES = '''
multi_group: (group_names|intersection(['alpha', 'beta', 'omega']))|length >= 2
keyed_groups:
# this creates a group per distro (distro_CentOS, distro_Debian) and assigns the hosts that have matching values to it
# this creates a group per distro (distro_CentOS, distro_Debian) and assigns the hosts that have matching values to it,
# using the default separator "_"
- prefix: distro
key: ansible_distribution