3 ms·
> Which method supports easily templating your configuration files? But you don't actually use templating. You just copy the file over. What do you do when yo
by spindritf 13y ago
> Which method supports easily templating your configuration files?
But you don't actually use templating. You just copy the file over.
What do you do when you have to edit the configuration file? When it needs to be different on every machine for whatever reason (IPs to listen on, hostnames)? What is the smart way to do that automatically?
- falcolas 13y agoTemplates and host variables. Templates use the jinja2 templating engine, so variables are represented by `{{ variable_name }}`, and you can put variables (as well as defaults) into Ansible configs to set them to different values for different servers.