ansible git模块

2021-08-10  本文已影响0人  mini鱼

ansible git模块

官方介绍

---
- hosts: localhost
  gather_facts: false
  vars:
    git_base: /tmp/codes/
    git_dir: "{{ git_base }}/product"
    branch: devel
  tasks:
    - name: clone product
      git:
        repo: https://username:password@gitlab.xxxx.com/product/product.git
        dest: "{{ git_dir }}"
        version: "{{ branch }}"
repo: https://oauth2:$token@gitlab.xxxx.com/product/product.git
上一篇 下一篇

猜你喜欢

热点阅读