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.