pyinfra icon indicating copy to clipboard operation
pyinfra copied to clipboard

Host data files

Open Fizzadar opened this issue 3 years ago • 2 comments

We already have group_data/*.py files, why not host_data/my-host.net.py files?

Fizzadar avatar May 07 '22 08:05 Fizzadar

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.

jmce avatar Jul 15 '23 15:07 jmce

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 :)

Fizzadar avatar Jul 17 '23 20:07 Fizzadar