redbeard28.git

ANSIBLE-ROLE-GIT

Ansible 角色安装 Git

如何使用这个角色?

这个角色需要在一个剧本中包含。

像这样调用这个 Galaxy 角色:

ansible-galaxy install -r requirements.yml 

requirements.yml

# 从 GitHub 获取,重写名称并指定特定标签
- src: git+https://github.com/redbeard28/ansible-role-git.git
  version: master
  name: git

或者

- src: redbeard28.git

更多信息 => Ansible 文档

需求

  • Ansible 2.9+

角色变量

---
# 无

依赖

  • redbeard28.bootstrap

示例剧本

提供一个使用你角色的示例(例如,传入参数的变量)对用户总是很有帮助:

- hosts: all
  roles:
     - { role: redbeard28.git, tags: mytags }

Molecule 测试框架

你可以使用 molecule 测试这个角色。

namespace=redbeard28 image=debian tag="buster-basetools" molecule converge 
namespace=redbeard28 image=debian tag="buster-basetools" molecule verify
namespace=redbeard28 image=debian tag="buster-basetools" molecule lint 

或者

namespace=redbeard28 image=debian tag="buster-basetools" molecule test 

作者信息

Jeremie CUADRADO¹ 来自 Redbeard-Consulting

关于项目

Ansible role install Git.

安装
ansible-galaxy install redbeard28.git
许可证
Unknown
下载
108