It is probably something I am doing wrong--I will be the first to admit it.

I want to copy files from my ansible server to a bunch of remote hosts.  I 
need this to work recursively.  Unfortunately it just copies the file1.txt 
file at the root of the src, and nothing else.  Thoughts?

File structure:

# tree .
.
├── dir1
│   ├── dir2
│   │   └── file3.txt
│   ├── dir3
│   │   └── file3.txt
│   ├── dir4
│   │   └── file3.txt
│   └── file2.txt
└── file1.txt


PLAYBOOK (part of a role):
---
# tasks file for push_files
- name: Push files to remote server
  copy:
    src: "{{ item }}"
    dest: "/root/src/Collection/"
    owner: root
    mode: 0770
    recurse: yes
  with_fileglob:
    - files/*



-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d4e9671b-f016-4b86-a321-2de69f1e0d44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to