需求:通过 ansible 用一条命令 在git 目录外的目录,执行git pull 目标目录
注意:是通过ansible 控制远程git pull
update:
配了3个host 代码路径都一样,但是只有一个能更新,这是为什么呢,
求指点
需求:通过 ansible 用一条命令 在git 目录外的目录,执行git pull 目标目录
注意:是通过ansible 控制远程git pull
update:
配了3个host 代码路径都一样,但是只有一个能更新,这是为什么呢,
求指点
https://www.kancloud.cn/hiyan...
---
- name: module git test
hosts: s.hi.com
vars:
repo_url: git@git.coding.net:xxxx/ansiblebook.git
dest_path: /tmp/repo
tasks:
- name: checkout repository on the host
git: repo={{ repo_url }} dest={{ dest_path }} accept_hostkey=yes
7 回答5.3k 阅读
4 回答4k 阅读
2 回答5.9k 阅读✓ 已解决
2 回答2.5k 阅读✓ 已解决
1 回答2.3k 阅读✓ 已解决
2 回答799 阅读✓ 已解决
2 回答3.2k 阅读
参见https://stackoverflow.com/que...