griggheo / ansible-consul-template

Ansible role for installing consul-template
Apache License 2.0
54 stars 52 forks source link

Allow to change the destination filename when using a templated template #45

Closed JGodin-C2C closed 4 years ago

JGodin-C2C commented 4 years ago

Why : When you use templates of templates, you may like to inject data in the template using the same template multiple times. This is easily done, but as the destination keep the same name as the source file, the different files will all be overwritten. This simple patch allows to override the destination file name without interfering with the existing installations.