Re: [ansible-devel] Re: remote_src and template_host not working in template module for me

12 views
Skip to first unread message
Message has been deleted
Message has been deleted

Felix Fontein

unread,
Feb 19, 2020, 9:02:41 AM2/19/20
to ansibl...@googlegroups.com
Hello,

pleaes use the appropriate places for support questions. This mailing
list is for discussions on the development of Ansible.

You might want to try
https://groups.google.com/forum/#!forum/ansible-project instead.

Best,
Felix



On Wed, 19 Feb 2020 05:54:53 -0800 (PST)
JJ <janmeja...@gmail.com> wrote:

> Can any one please help on it
>
> On Tuesday, February 18, 2020 at 10:19:44 PM UTC+5:30, JJ wrote:
> >
> > ---
> > - hosts: all
> > remote_user: root
> > vars_files:
> > - json/UAT.json
> >
> > tasks:
> > - name: Generate configGen files
> > template:
> > src: /template/test.j2
> > dest: /properties/test.properties
> > remote_src: yes
> > template_host:
> >
> >
> > Error:
> >
> > ERROR! vars file /template/test.j2 was not found
> >
> > 15
> >
> > Could not find file on the Ansible Controller.
> >
> > 16
> >
> > If you are using a module and expect the file to exist on the
> > remote, see the remote_src option
> >
> >
> > In same way it showing it showing json/UAT.json was not found.
> >
> >
> > NOTE: Can you please help on it and we are using ansible 2.9.
> >
>

Reply all
Reply to author
Forward
0 new messages