griggheo / ansible-consul-template

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

Wrong access of 'consul_template_template_files' in with_items #39

Open AlexanderKoehn opened 7 years ago

AlexanderKoehn commented 7 years ago

Hi all,

according to http://docs.ansible.com/ansible/latest/playbooks_loops.html#standard-loops the line https://github.com/griggheo/ansible-consul-template/blob/9bab12612a149de3771dcc2c8f21a5f7aa5043c1/tasks/install.yml#L98 should be written as with_items: "{{ consul_template_template_files }}"

Since such an item only contains one attribute 'src' one could think about turning it into a list.