"local_action: command rsync -a"

Hi all,

I have around 120 hosts to push out this much of data in two directories:

du -hs bin conf/
308K bin
16K conf/

The strange thing is that this take a long long time and it even stucked and then “At times” might even complained that rsync was not found. I installed rsync on both ends but that does not solve the issue at all.

I ran with -f 10 so every times I started again, things moved 10 hosts and then stucked. I stopped the ansible-playbook and then started again and it moved along to the next 10 hosts and then stucked.

I resorted to use the copy module and things went along just fine. Should I blame rsync or what? I even included rsync --timeout=10 but that did not help either.

Big question: what is the best way to keep my files in directories synced to hundred of machines? I already created tar files for some of my stuffs and put them in httpd apache server to geturl but that is less than desirable. I do want to keep my files in synced and checked in the SCM system.

Please helps.
Thanks,
Steven.

steven 31424 0.0 0.0 106084 1240 pts/0 S 00:38 0:00 /bin/sh -c /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.26-265651213447324/command; rm -rf /home/steven/.ansible/tmp/ansible-1386031112.26-265651213447324/ >/dev/null 2>&1
steven 31425 0.0 0.0 177552 8116 pts/0 S 00:38 0:00 /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.26-265651213447324/command
steven 31435 0.0 0.0 106084 1244 pts/0 S 00:38 0:00 /bin/sh -c /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.32-234168639998287/command; rm -rf /home/steven/.ansible/tmp/ansible-1386031112.32-234168639998287/ >/dev/null 2>&1
steven 31436 0.0 0.0 177556 8120 pts/0 S 00:38 0:00 /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.32-234168639998287/command
steven 31437 0.0 0.0 0 0 pts/0 Z 00:38 0:00 [rsync]
steven 31444 0.0 0.0 106084 1240 pts/0 S 00:38 0:00 /bin/sh -c /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.32-188370331004906/command; rm -rf /home/steven/.ansible/tmp/ansible-1386031112.32-188370331004906/ >/dev/null 2>&1
steven 31445 0.0 0.0 177552 8116 pts/0 S 00:38 0:00 /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.32-188370331004906/command
steven 31451 0.0 0.0 106084 1244 pts/0 S 00:38 0:00 /bin/sh -c /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.33-131188721525220/command; rm -rf /home/steven/.ansible/tmp/ansible-1386031112.33-131188721525220/ >/dev/null 2>&1
steven 31455 0.0 0.0 177556 8120 pts/0 S 00:38 0:00 /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.33-131188721525220/command
steven 31458 0.0 0.0 106084 1244 pts/0 S 00:38 0:00 /bin/sh -c /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.33-119247120580887/command; rm -rf /home/steven/.ansible/tmp/ansible-1386031112.33-119247120580887/ >/dev/null 2>&1
steven 31459 0.0 0.0 177556 8116 pts/0 S 00:38 0:00 /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.33-119247120580887/command
steven 31461 0.0 0.0 106084 1240 pts/0 S 00:38 0:00 /bin/sh -c /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.34-182844903459822/command; rm -rf /home/steven/.ansible/tmp/ansible-1386031112.34-182844903459822/ >/dev/null 2>&1
steven 31462 0.0 0.0 106084 1240 pts/0 S 00:38 0:00 /bin/sh -c /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.34-157549709957672/command; rm -rf /home/steven/.ansible/tmp/ansible-1386031112.34-157549709957672/ >/dev/null 2>&1
steven 31463 0.0 0.0 177552 8116 pts/0 S 00:38 0:00 /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.34-182844903459822/command
steven 31464 0.0 0.0 177556 8120 pts/0 S 00:38 0:00 /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.34-157549709957672/command
steven 31472 0.0 0.0 106084 1244 pts/0 S 00:38 0:00 /bin/sh -c /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.35-58684572113953/command; rm -rf /home/steven/.ansible/tmp/ansible-1386031112.35-58684572113953/ >/dev/null 2>&1
steven 31474 0.0 0.0 177556 8120 pts/0 S 00:38 0:00 /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.35-58684572113953/command
steven 31476 0.0 0.0 0 0 pts/0 Z 00:38 0:00 [rsync]
steven 31479 0.0 0.0 106084 1244 pts/0 S 00:38 0:00 /bin/sh -c /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.36-31789225175971/command; rm -rf /home/steven/.ansible/tmp/ansible-1386031112.36-31789225175971/ >/dev/null 2>&1
steven 31480 0.0 0.0 177556 8116 pts/0 S 00:38 0:00 /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.36-31789225175971/command
steven 31481 0.0 0.0 0 0 pts/0 Z 00:38 0:00 [rsync]
steven 31483 0.0 0.0 106084 1240 pts/0 S 00:38 0:00 /bin/sh -c /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.36-78127104072796/command; rm -rf /home/steven/.ansible/tmp/ansible-1386031112.36-78127104072796/ >/dev/null 2>&1
steven 31484 0.0 0.0 177556 8116 pts/0 S 00:38 0:00 /usr/bin/python /home/steven/.ansible/tmp/ansible-1386031112.36-78127104072796/command
steven 31486 0.0 0.0 0 0 pts/0 Z 00:38 0:00 [rsync]
steven 31487 0.0 0.0 0 0 pts/0 Z 00:38 0:00 [rsync]
steven 31490 0.0 0.0 0 0 pts/0 Z 00:38 0:00 [rsync]
steven 31492 0.0 0.0 0 0 pts/0 Z 00:38 0:00 [rsync]
steven 31497 0.0 0.0 0 0 pts/0 Z 00:38 0:00 [rsync]
steven 31499 0.0 0.0 0 0 pts/0 Z 00:38 0:00 [rsync]
steven 31501 0.0 0.0 0 0 pts/0 Z 00:38 0:00 [rsync]

You probably should consider packaging those files as you probably don’t want to launch that many then.

No idea about your not found message as no output was shared, nor playbook, etc.

– Michael