💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
# git模块 [git模块](http://docs.ansible.com/ansible/latest/git_module.html) 此模块用于checkout远程git仓库中的文件 应先在git仓库添加密钥认证,在进行克隆。 ``` --- - name: module git test hosts: s.hi.com vars: repo_url: git@git.coding.net:echohiyang/ansiblebook.git dest_path: /tmp/repo tasks: - name: checkout repository on the host git: repo={{ repo_url }} dest={{ dest_path }} accept_hostkey=yes ``` > 注意:dest所指定的那级目录应不存在,否则会报错