【发布时间】:2017-01-10 18:55:52
【问题描述】:
我正在尝试使用 Ansible 从我的两个 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 剧本如下所示:
编辑:
- 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://git@github.com/*****/{{ item.repo }}.git
dest={{ item.dest }}
# accept_hostkey=yes
# force=yes
# recursive=no
with_items:
-
dest: "{{ destination }}"
repo: RepoEexample
# -
# dest: "{{ destination }}"
# repo: RepoExample
任何帮助将不胜感激
【问题讨论】:
标签: git github ansible ansible-playbook