Re: [ansible-project] Copy task w/Content being evaluated as parameters and causing it to fail

2015-05-18 Thread Brian Coca
templates should get all current variables by default >> Brain - trying to capture output of an ansible command. Can't use a >> template in that situation unless there's some way it can pull in runtime >> variables...? -- Brian Coca -- You received this message because you are subscribed to

Re: [ansible-project] Copy task w/Content being evaluated as parameters and causing it to fail

2015-05-18 Thread Mark
Ideally, something like - copy var_content=myVariable dest=/tmp/myFile.json On Monday, May 18, 2015 at 3:27:24 PM UTC-4, Mark wrote: > > Brain - trying to capture output of an ansible command. Can't use a > template in that situation unless there's some way it can pull in runtime > variables.

Re: [ansible-project] Copy task w/Content being evaluated as parameters and causing it to fail

2015-05-18 Thread Mark
Brain - trying to capture output of an ansible command. Can't use a template in that situation unless there's some way it can pull in runtime variables...? On Friday, May 15, 2015 at 9:39:09 AM UTC-4, Brian Coca wrote: > > I would switch to the template module, copy's content is not a good > m

Re: [ansible-project] Copy task w/Content being evaluated as parameters and causing it to fail

2015-05-15 Thread Brian Coca
I would switch to the template module, copy's content is not a good method for anything but trivial file content. -- Brian Coca -- 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

[ansible-project] Copy task w/Content being evaluated as parameters and causing it to fail

2015-05-14 Thread Mark
I'm trying to capture the contents of a variable that was registered from a previous task, and write it to file for later debugging / troubleshooting if the need arises. The variable essentially has this in it: {"changed": true, "cmd": ["mongo", "--eval", "printjson(rs.add(\"myserver\"))"], "d