I have a set of bare git directories stored as /home/git/XXX.git.

I would like to synchronize all the XXX.git directories with a remote 
server using ansible. 
But this is apparently not possible.


In my gitsrv role's main.yml I have defined the following task:

- debug: msg="src='{{item }}'"
  with_fileglob:
      - /home/git/*.git
  tags: test
  

- name: Restore repositories
  synchronize: src="{{ item }}" mode=push dest="/home/git"
  with_fileglob:
      - /home/git/*.git
  tags: restore

Both command do nothing because the blob set contains no file. It contains 
only directories and and with_fileblob iterates only on files.

How could I synchronize the XXX.git directories with the remote server ?

-- 
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/208939a7-51a5-40d7-9fa8-ec4f1c8ef6fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to