Hey, so I have a number of essentially identical development servers which have a set of mostly-identical config files. In the config files are small configuration differences for each server, usually a differing API key or a differing host name, which will need to persist for the life of the file. I would love to use ansible to sync the identical portions of the config files, but am looking for a way to also keep the differing portions separate. Is there a way to pass in the server-specific vars as I sync the config files? Any other ideas? Sincere thanks for any help!
Hi Colin,
look at group_vars and host_vars directories: http://docs.ansible.com/ansible/intro_inventory.html
Most of the settings will be in group_vars and whenever you will need different api key, or anything, you can add it to host_vars/ directory for that one host.
Regards