如何在微软的windows下使用安全的方式克隆git仓库 [英] How to clone git repository using ansible under microsoft windows
本文介绍了如何在微软的windows下使用安全的方式克隆git仓库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在远程端克隆git reposritory,但不知道如何执行此操作: 我试过类似的东西:
ul>
- name:clone repositories
git:
repo:{{item.repo}}
dest:C:\openserver\domains\ {{domain_name}} \ {{item.value。
version:{{item.version | default('HEAD')}}
with_items:{{repositories}}
解决方案
我发现 win_git
tivrobo:
https://github.com / tivrobo / ansible-win_git
Ansible 2.1, control host under centos7, number of windows 10 as clients.
I need to clone git reposritory on remote side, but no idea how to do this:
- there is no windows native module
- linux module doesn't work
I've tried something like:
- name: clone repositories
git:
repo: "{{ item.repo }}"
dest: "C:\openserver\domains\{{ domain_name }}\{{ item.value.path }}"
version: "{{ item.version | default('HEAD') }}"
with_items: "{{ repositories }}"
解决方案
I have found win_git
module to use from @tivrobo:
https://github.com/tivrobo/ansible-win_git
这篇关于如何在微软的windows下使用安全的方式克隆git仓库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文