Can we do something like the "remote_src" parameter added in the "copy"
module with Ansible 2.0? The use of "fetch" seems like a pretty awkward
workaround. See another legitimate use case for this here:
http://stackoverflow.com/questions/33163204/ansible-remote-templates
On Thursday, July 23, 2015 at 5:17:32 AM UTC-7, Brian Coca wrote:
>
> something like?
>
> template: src={{lookup('uri', 'http://remote.com/file.j2'}}
>
> On Thu, Jul 23, 2015 at 3:17 AM, vitaly bichov <[email protected]
> <javascript:>> wrote:
> > Hi,
> >
> > I'm facing the same issue and wonder how you solved it?
> >
> > On Monday, September 30, 2013 at 1:29:06 PM UTC+3, Bruno Dupuis wrote:
> >>
> >> Hi,
> >>
> >> Is there a practical way to use a remote file as a jinja template in
> >> template modules ?
> >>
> >> Let's explain my use case:
> >>
> >> My application code requires configuration that may vary depending on
> the
> >> environment (dev/staging/prot)
> >>
> >> I want to keep configuration defintion into application code, as j2
> >> template, because it's easier to maintain.
> >>
> >> Those templates are deployed on the target machines along with the app,
> >> and then ansible creates final configuration files, using host/group
> >> variables.
> >>
> >> Regards.
> >>
> >> --
> >> Bruno
> >>
> > --
> > 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] <javascript:>.
> > To post to this group, send email to [email protected]
> <javascript:>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/ansible-project/a7a24228-78b0-4482-91e9-57b76fc1cdfc%40googlegroups.com.
>
>
> > For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> 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 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/909a26eb-a8a0-4f82-9fb8-21f9b9aed13b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.