On 24.01.17 09:40 [email protected] wrote: > with the included cookbook:
cookbook is chef, ansible uses playbooks ;-)
I think there is an error in your dest, you use double curly braces
inside of double curly braces:
template:
src: templates/{{item[1]}}
dest: /etc/{{item[1] | regex_replace('X',{{item[0]. > index}})}}
owner: root
group: root
mode: 0744
We had this recently, change the inner braces to single square ones:
dest: /etc/{{ item[1] | regex_replace('X', [ item[0]. > index ] ) }}
Untested!
Johannes
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/01c0a5b0-58dd-5e48-1445-9c10fc5bad1b%40ojkastl.de.
For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature
