Here's the play:

  - name: Drupal | Add Libraries & Modules (synchronize)
    synchronize: src=../roles/drupal-install/files/{{ item }} dest={{ 
drupal_path }}/sites/all/
    sudo: no
    with_items:
        - libraries
        - modules
    tags: sync


And the run:

(drupal-ansible)bash-3.2$ ansible-playbook -t sync -i hosts/vagrant 
playbooks/drupal-boostrap.yml -vvvv

PLAY [webservers] 
************************************************************* 

GATHERING FACTS 
*************************************************************** 
<127.0.0.1> ESTABLISH CONNECTION FOR USER: ubuntu
<127.0.0.1> REMOTE_MODULE setup
<127.0.0.1> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', 
'-o', 'ControlPersist=60s', '-o', 
'ControlPath=/Users/chris/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 
'Port=2222', '-o', 'KbdInteractiveAuthentication=no', '-o', 
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', 
'-o', 'PasswordAuthentication=no', '-o', 'User=ubuntu', '-o', 
'ConnectTimeout=10', '127.0.0.1', "/bin/sh -c 'mkdir -p 
/tmp/ansible-tmp-1394216215.84-11086530114397 && chmod a+rx 
/tmp/ansible-tmp-1394216215.84-11086530114397 && echo 
/tmp/ansible-tmp-1394216215.84-11086530114397'"]
<127.0.0.1> PUT /var/folders/03/j6n21gy53ks5dk80cyh9c5800000gn/T/tmp4cvLiN 
TO /tmp/ansible-tmp-1394216215.84-11086530114397/setup
<127.0.0.1> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', 
'-o', 'ControlPersist=60s', '-o', 
'ControlPath=/Users/chris/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 
'Port=2222', '-o', 'KbdInteractiveAuthentication=no', '-o', 
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', 
'-o', 'PasswordAuthentication=no', '-o', 'User=ubuntu', '-o', 
'ConnectTimeout=10', '127.0.0.1', '/bin/sh -c \'sudo -k && sudo -H -S -p 
"[sudo via ansible, key=zvkuutgiqcazqeyectujmpnblbhrfkni] password: " -u 
root /bin/sh -c \'"\'"\'echo SUDO-SUCCESS-zvkuutgiqcazqeyectujmpnblbhrfkni; 
/usr/bin/python /tmp/ansible-tmp-1394216215.84-11086530114397/setup; rm -rf 
/tmp/ansible-tmp-1394216215.84-11086530114397/ >/dev/null 2>&1\'"\'"\'\'']
ok: [127.0.0.1]

TASK: [drupal-install | Drupal | Add Libraries & Modules (synchronize)] 
******* 
<127.0.0.1> ESTABLISH CONNECTION FOR USER: ubuntu
<127.0.0.1> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', 
'-o', 'ControlPersist=60s', '-o', 
'ControlPath=/Users/chris/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 
'Port=2222', '-o', 'KbdInteractiveAuthentication=no', '-o', 
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', 
'-o', 'PasswordAuthentication=no', '-o', 'User=ubuntu', '-o', 
'ConnectTimeout=10', '127.0.0.1', "/bin/sh -c 'mkdir -p 
$HOME/.ansible/tmp/ansible-tmp-1394216217.23-26780158979732 && chmod a+rx 
$HOME/.ansible/tmp/ansible-tmp-1394216217.23-26780158979732 && echo 
$HOME/.ansible/tmp/ansible-tmp-1394216217.23-26780158979732'"]
<127.0.0.1> PUT /var/folders/03/j6n21gy53ks5dk80cyh9c5800000gn/T/tmp66LBCq 
TO 
/home/ubuntu/.ansible/tmp/ansible-tmp-1394216217.23-26780158979732/synchronize
<127.0.0.1> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', 
'-o', 'ControlPersist=60s', '-o', 
'ControlPath=/Users/chris/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 
'Port=2222', '-o', 'KbdInteractiveAuthentication=no', '-o', 
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', 
'-o', 'PasswordAuthentication=no', '-o', 'User=ubuntu', '-o', 
'ConnectTimeout=10', '127.0.0.1', "/bin/sh -c '/usr/bin/python 
/home/ubuntu/.ansible/tmp/ansible-tmp-1394216217.23-26780158979732/synchronize; 
rm -rf /home/ubuntu/.ansible/tmp/ansible-tmp-1394216217.23-26780158979732/ 
>/dev/null 2>&1'"]
failed: [127.0.0.1] => (item=libraries) => {"cmd": "rsync --delay-updates 
-FF --compress --timeout=10 --archive --rsh 'ssh  -o 
StrictHostKeyChecking=no -o Port=2222' --out-format='<<CHANGED>>%i %n%L' 
../roles/drupal-install/files/libraries 
/home/ubuntu/www/drupal//sites/all/", "failed": true, "item": "libraries", 
"rc": 23}
msg: rsync: change_dir "/home/ubuntu//../roles/drupal-install/files" 
failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) 
(code 23) at main.c(1070) [sender=3.0.9]

<127.0.0.1> ESTABLISH CONNECTION FOR USER: ubuntu
<127.0.0.1> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', 
'-o', 'ControlPersist=60s', '-o', 
'ControlPath=/Users/chris/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 
'Port=2222', '-o', 'KbdInteractiveAuthentication=no', '-o', 
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', 
'-o', 'PasswordAuthentication=no', '-o', 'User=ubuntu', '-o', 
'ConnectTimeout=10', '127.0.0.1', "/bin/sh -c 'mkdir -p 
$HOME/.ansible/tmp/ansible-tmp-1394216217.47-32135159071547 && chmod a+rx 
$HOME/.ansible/tmp/ansible-tmp-1394216217.47-32135159071547 && echo 
$HOME/.ansible/tmp/ansible-tmp-1394216217.47-32135159071547'"]
<127.0.0.1> PUT /var/folders/03/j6n21gy53ks5dk80cyh9c5800000gn/T/tmpuAQh52 
TO 
/home/ubuntu/.ansible/tmp/ansible-tmp-1394216217.47-32135159071547/synchronize
<127.0.0.1> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', 
'-o', 'ControlPersist=60s', '-o', 
'ControlPath=/Users/chris/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 
'Port=2222', '-o', 'KbdInteractiveAuthentication=no', '-o', 
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', 
'-o', 'PasswordAuthentication=no', '-o', 'User=ubuntu', '-o', 
'ConnectTimeout=10', '127.0.0.1', "/bin/sh -c '/usr/bin/python 
/home/ubuntu/.ansible/tmp/ansible-tmp-1394216217.47-32135159071547/synchronize; 
rm -rf /home/ubuntu/.ansible/tmp/ansible-tmp-1394216217.47-32135159071547/ 
>/dev/null 2>&1'"]
failed: [127.0.0.1] => (item=modules) => {"cmd": "rsync --delay-updates -FF 
--compress --timeout=10 --archive --rsh 'ssh  -o StrictHostKeyChecking=no 
-o Port=2222' --out-format='<<CHANGED>>%i %n%L' 
../roles/drupal-install/files/modules /home/ubuntu/www/drupal//sites/all/", 
"failed": true, "item": "modules", "rc": 23}
msg: rsync: change_dir "/home/ubuntu//../roles/drupal-install/files" 
failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) 
(code 23) at main.c(1070) [sender=3.0.9]


FATAL: all hosts have already failed -- aborting

PLAY RECAP 
******************************************************************** 
           to retry, use: --limit @/Users/chris/drupal-boostrap.retry

127.0.0.1                  : ok=1    changed=0    unreachable=0    failed=1 
  
 

-- 
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/27bcf950-c5a6-484a-8945-4dbbbae0427d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to