Re: [ansible-project] Seemingly simple template driving me mad

2014-11-25 Thread Stephen Tan
Yes, that worked - I am kicking myself a bit - thanks again. It's a bit of a counter-intuitive view to the data structure for me. One you explained about fred being the key it became clear. Thanks for the explanation. On Monday, 24 November 2014 14:44:00 UTC, Michael Peters wrote: > > In this ca

Re: [ansible-project] Seemingly simple template driving me mad

2014-11-24 Thread Michael Peters
In this case "fred" is the key to the exports dictionary. It can't be both the key and the entry itself. Try something like: {{ fred }} {{ exports[fred].options }} On Sun, Nov 23, 2014 at 6:35 AM, Stephen Tan wrote: > Hi - I'm doing something which seems very simple - trying to create a file

[ansible-project] Seemingly simple template driving me mad

2014-11-24 Thread Stephen Tan
Hi - I'm doing something which seems very simple - trying to create a file from a jinja template. Here are my vars: export_root: host: "81.187.209.128/27" options: "rw,fsid=0,insecure,no_subtree_check,async" exports: video: host: "81.187.209.128/27" options: "rw,nohide,insecure,no_