git clone not working

21 views
Skip to first unread message

Doron Shai

unread,
Nov 5, 2015, 5:23:31 AM11/5/15
to Ansible Project, Doronshai GMAIL
Hello,

I am trying to clone a github public repo to my CentOs and it doesn't work. it doesn't fail as well, just do not clone....

the main.yml of the relevant role is

---
- name: clone git
  git
:
     repo
=https://github.com/test/myRepo.git
     dest
=/tmp/AAA

What I get is this:


PLAY [stations] ***************************************************************


GATHERING FACTS
***************************************************************
<dev-tester-3.df.domain.local> ESTABLISH CONNECTION FOR USER: tester
<dev-tester-3.df.domain.local> REMOTE_MODULE setup
<dev-tester-3.df.domain.local> EXEC ssh -C -tt -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/workspace/TEST/tester/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 dev-tester-3.df.domain.local /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1446718783.83-66391903529233 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1446718783.83-66391903529233 && echo $HOME/.ansible/tmp/ansible-tmp-1446718783.83-66391903529233'
<dev-tester-3.df.domain.local> PUT /tmp/tmpKw_j7i TO setup
<dev-tester-3.df.domain.local> EXEC ssh -C -tt -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/workspace/TEST/tester/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 dev-tester-3.df.domain.local /bin/sh -c 'LANG=C LC_CTYPE=C /usr/bin/python setup'
ok
: [dev-tester-3.df.domain.local]


TASK
: [setup-station | clone git myRepo if not exists] *******************
<dev-tester-3.df.domain.local> ESTABLISH CONNECTION FOR USER: tester
<dev-tester-3.df.domain.local> REMOTE_MODULE git repo=https://github.com/myRepo.git dest=/tmp/AAA clone=yes
<dev-tester-3.df.domain.local> EXEC ssh -C -tt -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/workspace/TEST/tester/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 dev-tester-3.df.domain.local /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1446718785.6-246781889603948 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1446718785.6-246781889603948 && echo $HOME/.ansible/tmp/ansible-tmp-1446718785.6-246781889603948'
<dev-tester-3.df.domain.local> PUT /tmp/tmproJNua TO /workspace/TEST/tester/.ansible/tmp/ansible-tmp-1446718785.6-246781889603948/git
<dev-tester-3.df.domain.local> EXEC ssh -C -tt -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/workspace/TEST/tester/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 dev-tester-3.df.domain.local /bin/sh -c 'LANG=C LC_CTYPE=C /usr/bin/python /workspace/TEST/tester/.ansible/tmp/ansible-tmp-1446718785.6-246781889603948/git; rm -rf /workspace/TEST/tester/.ansible/tmp/ansible-tmp-1446718785.6-246781889603948/ >/dev/null 2>&1'
ok
: [dev-tester-3.df.domain.local] => {"after": "0c643d2bfda7ebd4ff0f4f871a4bf902fa711569", "before": "0c643d2bfda7ebd4ff0f4f871a4bf902fa711569", "changed": false}


TASK
: [setup-station | debug] *************************************************
<dev-tester-3.df.domain.local> ESTABLISH CONNECTION FOR USER: tester
ok
: [dev-tester-3.df.domain.local] => {
   
"var": {
       
"git_output": {
           
"after": "0c643d2bfda7ebd4ff0f4f871a4bf902fa711569",
           
"before": "0c643d2bfda7ebd4ff0f4f871a4bf902fa711569",
           
"changed": false,
           
"invocation": {
               
"module_args": "repo=https://github.com/myRepo.git dest=/tmp/AAA clone=yes",
               
"module_name": "git"
           
}
       
}
   
}
}


PLAY RECAP
********************************************************************
dev
-tester-3.df.domain.local : ok=3    changed=0    unreachable=0    failed=0


can someone assist?

Doron Shai

unread,
Nov 5, 2015, 6:38:39 AM11/5/15
to Ansible Project, doro...@gmail.com
please ignore - my mistake.
apologizes
...
Reply all
Reply to author
Forward
0 new messages