>
> Enter code here...
> - name: Git Clone
>   # Clone the local repo. Getting to github is tricky.
>   git: repo=https://github.com/jbremson/SG_ASP.git dest="{{ scheduler_code 
> }}" version="rq" force=yes
> - file: path="{{ scheduler_code }}" owner="{{ scheduler_user }}" 
> recurse=yes
> # What is scheduler_code ? The repo is not getting picked up
>
>
>
> TASK: [scheduler | Git Clone] 
> ************************************************* 
> <ec2-54-162-234-59.compute-1.amazonaws.com> ESTABLISH CONNECTION FOR USER: 
> root
> <ec2-54-162-234-59.compute-1.amazonaws.com> REMOTE_MODULE git 
> repo=https://github.com/jbremson/SG_ASP.git 
> dest="/opt/speedgauge/scheduler/code" version="rq" force=yes
> <ec2-54-162-234-59.compute-1.amazonaws.com> EXEC ssh -C -vvv -o 
> ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o 
> ControlPath="/home/joel/.ansible/cp/%h-%r" -o 
> KbdInteractiveAuthentication=no -o 
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
> -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 
> ec2-54-162-234-59.compute-1.amazonaws.com /bin/sh -c 'LANG=en_US.UTF-8 
> LC_CTYPE=en_US.UTF-8 /usr/bin/python'
> failed: [ec2-54-162-234-59.compute-1.amazonaws.com] => {"cmd": 
> "/usr/bin/git ls-remote origin -h refs/heads/rq", "failed": true, "rc": 128}
> stderr: fatal: '/opt/speedgauge/sg_repo' does not appear to be a git 
> repository
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights
> and the repository exists.
>
> msg: fatal: '/opt/speedgauge/sg_repo' does not appear to be a git 
> repository
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights
> and the repository exists.
>
> FATAL: all hosts have already failed -- aborting
>
>
> I'm having a problem getting my git task to point to the external repo. 
> Instead it tries to look in a local repo: /opt/speedgauge/sg_repo


I want to pull from repo listed in the task. What am I doing wrong here?

Cheers,
Joel 

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bf86bc34-d436-47ba-a9a5-b182ae052153%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to