![如何使用 ansible 执行 git push](https://linux22.com/image/758132/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20ansible%20%E6%89%A7%E8%A1%8C%20git%20push.png)
我正在使用 Ansible
为了拉动我这样做
tasks:
- name: pull from git
git:
repo: [email protected]:xyz.git
dest: /root/Development/abc
update: yes
version: master
注意:此处远程用户是root
我的问题是如何使用git ansible
模块进行推送?
答案1
如何使用 git ansible 模块进行推送?
内置的 git 模块没有该功能。它专注于拉取代码以便进行构建。