Hi All,
I am having below playbooks, I intent to include variables and I have got
below message as "OK" and "changed" but file not copied over.
please review and advise.
Main playbook:
cat fetchfile.yml
---
- hosts: all
tasks:
- name: Include vars of vars.yml into the 'dest' variable.
include_vars:
file: vars.yml
name: dest
- fetch:
src: /tmp/xyz.txt
dest: "{{ dest }}/"
flat: yes
------------ variable playbook:
cat variable.yml
dest: /u01/app
SSH password:
PLAY [all]
******************************************************************************************************************************************************************************
TASK [Gathering Facts]
***********************************************************************************************************************************************************************
ok: [myserver]
TASK [Include vars of variable.yml into the 'dest' variable.]
************************************************************************************************************************************
ok: [myserver]
TASK [fetch]
*********************************************************************************************************************************************************************************
changed: [myserver]
PLAY RECAP
***********************************************************************************************************************************************************************************
myserver : ok=3 changed=1 unreachable=0 failed=0
------------------ it shows above as changed but when I am checking xyz.txt
file at "dest" location, I could not see it, please advise.
Thank you.
Abdul
--
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/c0d2279a-c4c9-4a59-bc08-f22e15e750b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.