Hello All,

I have got the following playbooks where i am trying to copy directories 
and all its contents recursively which is present in project repo. For 
identifying the correct directory, i am using a variable which holds the 
pattern value. For some reason, the task is skipped and the full verbose 
too doesn't give me enough information about where it is failing. Can 
someone please suggest.

---
- hosts: all
  gather_facts: no
  become: yes
  vars:
    appid: '1554'
  tasks:
    - name: Copy each file over that matches the given pattern
      copy:
        src: "{{ item }}"
        dest: "/tmp"
      with_fileglob:
        - /home/DS/ram/playbooks/app_dir_{{ appid }}*


*Output -vvvv :*
PLAY [all] 
**************************************************************************************************************************************************
META: ran handlers


TASK [Copy each file over that matches the given pattern] 
***************************************************************************************************
task path: /home/DS/ram/playbooks/copyDirLinux.yml:8
META: ran handlers
META: ran handlers


PLAY RECAP 
**************************************************************************************************************************************************
host1              : ok=0    changed=0    unreachable=0    failed=0   
 skipped=1    rescued=0    ignored=0
host2              : ok=0    changed=0    unreachable=0    failed=0   
 skipped=1    rescued=0    ignored=0


and the following directory IS present: /home/DS/ram/playbooks/app_dir_1554
_cca


- Regards

-- 
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/725e44d4-6342-404f-9cc6-68c3fa4f9f30%40googlegroups.com.

Reply via email to