Hi,

I'm working with ansible-pull on ansible 2.0.0.2.  On initial clone I get a 
failure on the first run. Subsequent runs are fine until the content of the 
git repo changes, in which case a further error is thrown.  Runs when the 
repo doesn't change work ok, except for a warning about the user of sudo, 
which isn't configured.

Using /etc/ansible/ansible.cfg as config file
Starting Ansible Pull at 2016-01-31 10:34:46
/usr/bin/ansible-pull -d /var/lib/ansible-local -U 
https://github.com/mattwillsher/turbo-telegram.git -vvvv
EXEC: /usr/bin/ansible -i "/etc/ansible/hosts" -c local  -vvvv -m git -a 
"name=https://github.com/mattwillsher/turbo-telegram.git 
dest=/var/lib/ansible-local depth=1" 
"localhost,testvm2,testvm2.localdomain,127.0.0.1"
Using /etc/ansible/ansible.cfg as config file
Loaded callback minimal of type stdout, v2.0
ESTABLISH LOCAL CONNECTION FOR USER: root
127.0.0.1 EXEC ( umask 22 && mkdir -p "$( echo 
$HOME/.ansible/tmp/ansible-tmp-1454236486.6-237992076205449 )" && echo "$( 
echo $HOME/.ansible/tmp/ansible-tmp-1454236486.6-237992076205449 )" )
ESTABLISH LOCAL CONNECTION FOR USER: root
127.0.0.1 EXEC ( umask 22 && mkdir -p "$( echo 
$HOME/.ansible/tmp/ansible-tmp-1454236486.61-229596896503320 )" && echo "$( 
echo $HOME/.ansible/tmp/ansible-tmp-1454236486.61-229596896503320 )" )
127.0.0.1 PUT /tmp/tmppqj3FG TO 
/root/.ansible/tmp/ansible-tmp-1454236486.6-237992076205449/git
127.0.0.1 PUT /tmp/tmpzx6CKh TO 
/root/.ansible/tmp/ansible-tmp-1454236486.61-229596896503320/git
127.0.0.1 EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 
/usr/bin/python 
/root/.ansible/tmp/ansible-tmp-1454236486.6-237992076205449/git; rm -rf 
"/root/.ansible/tmp/ansible-tmp-1454236486.6-237992076205449/" > /dev/null 
2>&1
127.0.0.1 EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 
/usr/bin/python 
/root/.ansible/tmp/ansible-tmp-1454236486.61-229596896503320/git; rm -rf 
"/root/.ansible/tmp/ansible-tmp-1454236486.61-229596896503320/" > /dev/null 
2>&1
localhost | FAILED! => {
    "changed": false, 
    "cmd": "/usr/bin/git clone --origin origin --depth 1 
https://github.com/mattwillsher/turbo-telegram.git /var/lib/ansible-local", 
    "failed": true, 
    "invocation": {
        "module_args": {
            "accept_hostkey": false, 
            "bare": false, 
            "clone": true, 
            "depth": 1, 
            "dest": "/var/lib/ansible-local", 
            "executable": null, 
            "force": false, 
            "key_file": null, 
            "name": "https://github.com/mattwillsher/turbo-telegram.git";, 
            "recursive": true, 
            "reference": null, 
            "refspec": null, 
            "remote": "origin", 
            "repo": "https://github.com/mattwillsher/turbo-telegram.git";, 
            "ssh_opts": null, 
            "track_submodules": false, 
            "update": true, 
            "verify_commit": false, 
            "version": "HEAD"
        }, 
        "module_name": "git"
    }, 
    "msg": "fatal: destination path '/var/lib/ansible-local' already exists 
and is not an empty directory.", 
    "rc": 128, 
    "stderr": "fatal: destination path '/var/lib/ansible-local' already 
exists and is not an empty directory.\n", 
    "stdout": "", 
    "stdout_lines": []
}
127.0.0.1 | SUCCESS => {
    "after": "557a71b6a360ec20cf27460115ff670bff070cda", 
    "before": null, 
    "changed": true, 
    "invocation": {
        "module_args": {
            "accept_hostkey": false, 
            "bare": false, 
            "clone": true, 
            "depth": 1, 
            "dest": "/var/lib/ansible-local", 
            "executable": null, 
            "force": false, 
            "key_file": null, 
            "name": "https://github.com/mattwillsher/turbo-telegram.git";, 
            "recursive": true, 
            "reference": null, 
            "refspec": null, 
            "remote": "origin", 
            "repo": "https://github.com/mattwillsher/turbo-telegram.git";, 
            "ssh_opts": null, 
            "track_submodules": false, 
            "update": true, 
            "verify_commit": false, 
            "version": "HEAD"
        }, 
        "module_name": "git"
    }
}


Run after update:

Using /etc/ansible/ansible.cfg as config file
Starting Ansible Pull at 2016-01-31 10:50:15
/usr/bin/ansible-pull -d /var/lib/ansible-local -U 
https://github.com/mattwillsher/turbo-telegram.git -vvvv
EXEC: /usr/bin/ansible -i "/etc/ansible/hosts" -c local  -vvvv -m git -a 
"name=https://github.com/mattwillsher/turbo-telegram.git 
dest=/var/lib/ansible-local depth=1" 
"localhost,testvm2,testvm2.localdomain,127.0.0.1"
Using /etc/ansible/ansible.cfg as config file
Loaded callback minimal of type stdout, v2.0
ESTABLISH LOCAL CONNECTION FOR USER: root
127.0.0.1 EXEC ( umask 22 && mkdir -p "$( echo 
$HOME/.ansible/tmp/ansible-tmp-1454237415.87-253538956035650 )" && echo "$( 
echo $HOME/.ansible/tmp/ansible-tmp-1454237415.87-253538956035650 )" )
ESTABLISH LOCAL CONNECTION FOR USER: root
127.0.0.1 EXEC ( umask 22 && mkdir -p "$( echo 
$HOME/.ansible/tmp/ansible-tmp-1454237415.87-49409327849030 )" && echo "$( 
echo $HOME/.ansible/tmp/ansible-tmp-1454237415.87-49409327849030 )" )
127.0.0.1 PUT /tmp/tmp_KnOu9 TO 
/root/.ansible/tmp/ansible-tmp-1454237415.87-253538956035650/git
127.0.0.1 EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 
/usr/bin/python 
/root/.ansible/tmp/ansible-tmp-1454237415.87-253538956035650/git; rm -rf 
"/root/.ansible/tmp/ansible-tmp-1454237415.87-253538956035650/" > /dev/null 
2>&1
127.0.0.1 PUT /tmp/tmpaPeKpU TO 
/root/.ansible/tmp/ansible-tmp-1454237415.87-49409327849030/git
127.0.0.1 EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 
/usr/bin/python 
/root/.ansible/tmp/ansible-tmp-1454237415.87-49409327849030/git; rm -rf 
"/root/.ansible/tmp/ansible-tmp-1454237415.87-49409327849030/" > /dev/null 
2>&1
127.0.0.1 | FAILED! => {
    "changed": false, 
    "failed": true, 
    "invocation": {
        "module_args": {
            "accept_hostkey": false, 
            "bare": false, 
            "clone": true, 
            "depth": 1, 
            "dest": "/var/lib/ansible-local", 
            "executable": null, 
            "force": false, 
            "key_file": null, 
            "name": "https://github.com/mattwillsher/turbo-telegram.git";, 
            "recursive": true, 
            "reference": null, 
            "refspec": null, 
            "remote": "origin", 
            "repo": "https://github.com/mattwillsher/turbo-telegram.git";, 
            "ssh_opts": null, 
            "track_submodules": false, 
            "update": true, 
            "verify_commit": false, 
            "version": "HEAD"
        }, 
        "module_name": "git"
    }, 
    "msg": "Failed to download remote objects and refs:  error: cannot lock 
ref 'refs/remotes/origin/master': ref refs/remotes/origin/master is at 
b0c67413e18de8daea2e613b05a2d942ef6147ee but expected 
557a71b6a360ec20cf27460115ff670bff070cda\nFrom 
https://github.com/mattwillsher/turbo-telegram\n ! 557a71b..b0c6741  master 
    -> origin/master  (unable to update local ref)\n"
}
localhost | SUCCESS => {
    "after": "b0c67413e18de8daea2e613b05a2d942ef6147ee", 
    "before": "557a71b6a360ec20cf27460115ff670bff070cda", 
    "changed": true, 
    "invocation": {
        "module_args": {
            "accept_hostkey": false, 
            "bare": false, 
            "clone": true, 
            "depth": 1, 
            "dest": "/var/lib/ansible-local", 
            "executable": null, 
            "force": false, 
            "key_file": null, 
            "name": "https://github.com/mattwillsher/turbo-telegram.git";, 
            "recursive": true, 
            "reference": null, 
            "refspec": null, 
            "remote": "origin", 
            "repo": "https://github.com/mattwillsher/turbo-telegram.git";, 
            "ssh_opts": null, 
            "track_submodules": false, 
            "update": true, 
            "verify_commit": false, 
            "version": "HEAD"
        }, 
        "module_name": "git"
    }
}

-- 
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/8f85fe24-7edd-48f7-9f20-80dc390b2508%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to