美文网首页
Ansible Git Module

Ansible Git Module

作者: 黑涩布朗尼 | 来源:发表于2016-06-14 13:55 被阅读0次
--- # Git Module Example
- hosts: apacheserver
  user: ansible
  sudo: yes
  connection: ssh
  gather_facts: no
  tasks:
  - name: Checking out a git repo on the remote server
    git: repo=git://woody-xu3:/home/ansible/testrepo dest=/home/ansible/gitrepo-2/
    register: vinfo
  - debug: var=vinfo

Not work!!!

# Example checkout a github repo and use refspec to fetch all pull requests
- git: repo=https://github.com/ansible/ansible-examples.git dest=/src/ansible-examples

It's working!

相关文章

网友评论

      本文标题:Ansible Git Module

      本文链接:https://www.haomeiwen.com/subject/emrudttx.html