ahaerpfer / ansible-inventory-omd-livestatus

Ansible dynamic inventory script for OMD Livestatus.
BSD 2-Clause "Simplified" License
1 stars 1 forks source link

Inventory group names must not contain blanks (and other illegal characters) #2

Closed ahaerpfer closed 8 years ago

ahaerpfer commented 8 years ago

Inventory group names created from OMD hostgroup names must be sanitized w/ respect to illegal characters. Common practice is to translate any special characters that Ansible doesn't handle to underscores.

ahaerpfer commented 8 years ago

After some testing … obviously not complete:

And from an IRC conversation:

you may want to restrict it to words/chars that don't make your jinja templates complicated periods are notoriously irritating

See also the code comments in: https://github.com/ansible/ansible/blob/devel/lib/ansible/inventory/__init__.py#L232