You could use the file lookup to read in the contents of the file you wish,
for instance:
{{ lookup('file', '/path/to/file/you/want') }}
Though as Dick mentioned above, it is almost always better to use templates
when possible.
On Thu, Jun 5, 2014 at 10:18 AM, Dick Davies <[email protected]> wrote:
> I'm assuming you know about templates :)
>
> Can you give an example of the sort of thing you're trying to do?
>
> On 5 June 2014 11:37, Felix Gläske <[email protected]> wrote:
> > Hey,
> > is there a way to use a file from the machine where I run ansible to use
> as
> > input for the module lineinfile?
> >
> > --
> > 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/0c8048b8-7de3-4967-9a54-8d492a8faf83%40googlegroups.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/CAK5eLPQbq4EQX6TertgOetbA1LP9GLVbEvCSd2pTmxCQkBSj%3Dg%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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/CAMFyvFgKZcfENsG33DXeLaOxhKWhdG0n0Kp3VVsDCbV3q_vzUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.