Skip to content

Possible solutions for getting var as a file on a remote system? #1

@gardar

Description

@gardar

First of all thanks for creating this! I have often speculated about the possibility of using variable as a file in Ansible (and according to my google search so do others).

As lookups happen on localhost, have looked into if and how it would be possible to get the same result on a remote host?

I guess it would have to happen either by abusing the lookup function somehow or perhaps as a filter, since those are the only two ways that one can call functions in Ansible as a part of a string/variable. Either way it looks like the solution would involve some creative hacking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions