私はAnsibleを使用して、私のGitのリポジトリの2からプルしようとしていますが、私はこのエラーを取得しているようだ:エラーansibleにはgitから引っ張っ - {必要な実行ファイルのgitを見つけることができませんでした}
failed: [app01] (item={u'dest': u'/etc/', u'repo': u'Vigorate'}) =>{"failed": true, "item": {"dest": "/etc/", "repo": "Vigorate"}, "msg": "Failed to find required executable git"}
failed: [app01] (item={u'dest': u'/etc/', u'repo': u'Paint-UI'}) => {"failed": true, "item": {"dest": "/etc/", "repo": "Paint-UI"}, "msg": "Failed to find required executable git"}
私のgitの.yml脚本は次のようになります。
EDIT:
- hosts: app01
vars:
- destination: /home/vagrant/rep
tasks:
- name: Install dependencies
apt: name={{ item }} state=present
with_items:
- htop
- git-all
- name: Pull from Git
git: repo=http://[email protected]/*****/{{ item.repo }}.git
dest={{ item.dest }}
# accept_hostkey=yes
# force=yes
# recursive=no
with_items:
-
dest: "{{ destination }}"
repo: RepoEexample
# -
# dest: "{{ destination }}"
# repo: RepoExample
任意の助けをいただければ幸いです
これを解決しました。笑う馬 – firebolt
ワンダフル@あなたのあなたの助けのための ありがとう:「リポジトリ 『[email protected]/daniyalj/Vigorate.git』 \ nは存在しない致命的な」 しかし、今、私はエラーを取得しているように見えます! git-URLをもう一度チェックしたいと思うでしょう。あなたが正しいものを持っていることを確認してください(httpでもsshでも構いません)。繰り返しますが、変数を指定しないでコードを書くことをお勧めします。これで、構文が失われてしまうことがないようにしてから、戻してください。 –
少しhttp://トリックを解決しました!おかげで@笑い声 – firebolt