我有一个如下所示的剧本:
---
- hosts: 172.xx.xx.xx
remote_user: ec2-user
become: yes
become_method: sudo
tasks:
- git:
repo: https://github.com/mygitrepo/falconow.git
dest: /var/www/html
version: release-0.1
当我尝试运行此剧本时,我收到错误,如下所示:
fatal: [172.xx.xx.xx]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to find required executable git"}
[WARNING]: Could not create retry file
'/var/lib/jenkins/workspace/Ansible/copy.retry'. [Errno 13] Permission
denied: u'/var/lib/jenkins/workspace/Ansible/copy.retry'
我确信其中存在这样的回购或文件。有人能指出我正确的方向吗。
答案 0 :(得分:1)
评论回答:
我认为一个好主意是在服务器
git
上安装172.xx.xx.xx
...Ansible在远程服务器上执行任务。所以,是的,模块的所有要求必须安装在远程服务器上。