Hello Dick V, Many thanks a lot it does work. Cheers...
On Sun, Jul 26, 2020 at 12:03 AM Dick Visser <[email protected]> wrote: > The template module does not support 'remote_src'. > You have to template the file on the controller node. > > > On Sun, 26 Jul 2020 at 01:52, Poseidon Olympian <[email protected]> > wrote: > > > > Hello, > > > > Would appreciated of any help from my issue. Been trying to search > around a solution but unsuccessful to resolved my issue. > > > > I'm getting an error when running my playbook and here are the details. > > > > Error Message > > TASK [Copying the Common PROPS File] > ********************************************************************************************************************************************** > > fatal: [ServerNODE1]: FAILED! => {"changed": false, "msg": "Source > /home/testuser/.ansible/tmp/ansible-local-51618XqSiUO/tmpZJx0Dp/copy_appprops_node.j2 > not found"} > > > > Template File Location > > /home/testuser/scripts/ansible/templates/copy_appprops_node.j2 > > > > Playbook YML File (running by different user) > > --- > > - name: Test Template > > hosts: app_host > > > > tasks: > > - name: Copying the properties file > > template: > > src: copy_appprops_node.j2 > > dest: "/appserver/instance/conf/app_properties.conf" > > owner: app1 > > group: app1 > > mode: 0644 > > remote_src: yes > > ... > > > > I have already tried updating my ansible.cfg (in > /home/testuser/scripts/ansible) to add 'remote_tmp = ~/.ansible/tmp' > (even /tmp/${USER}/ansible or /home/testuser/.ansible/tmp) but still not > able to resolved. > > > > Thank you in advance. > > > > > > -- > > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/0cf22bd6-0bed-4b1f-b451-c79ebfa5813do%40googlegroups.com > . > > > > -- > Dick Visser > Trust & Identity Service Operations Manager > GÉANT > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAL8fbwO8HCWVrup13_J4oPcws6_kbecfEqOypqwBoR-TXpA0nA%40mail.gmail.com > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAN5Fp6e%3DA8WsjBCrqAAtBdpk_RjNqepknDB%2BRu8QbZ5KpP8syg%40mail.gmail.com.
