pyinfra
pyinfra copied to clipboard
Host data files
We already have group_data/*.py files, why not host_data/my-host.net.py files?
Might be nice. Otoh, being able to add group data directly in the inventory file, with no need to scatter it under the group_data directory, would be so nice too.
Might be nice. Otoh, being able to add group data directly in the inventory file, with no need to scatter it under the group_data directory, would be so nice too.
This is possible! If you specify a group as a tuple (list_of_hosts, data_dict) that should do it :)