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
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.
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
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
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