我有一個本地git存儲庫,我試圖克隆到一個流浪機器上。我試圖用ansible的「混帳」模塊要做到這一點,我有以下任務,如何從本地git存儲庫克隆到使用可變的虛擬機
- name: Clone repository
git: repo=git://../.git dest=/home/vagrant/source accept_hostkey=True
當我運行這個任務,我收到錯誤,
failed: [webserver] => {"cmd": "/usr/bin/git ls-remote git://../.git -h refs/heads/HEAD", "failed": true, "rc": 128}
stderr: fatal: unable to connect to ..:
..[0: 42.185.229.96]: errno=Connection timed out
msg: fatal: unable to connect to ..:
..[0: 42.185.229.96]: errno=Connection timed out
FATAL: all hosts have already failed -- aborting
它看起來像它的嘗試在我的虛擬機而不是我的本地機器上找到存儲庫?如何從我的本地回購克隆?