codeyourinfra.docker

Docker

许可证:MIT GitHub 发布 构建状态 Ansible 角色 Ansible 角色下载量

Ansible 角色用于安装 Docker

示例剧本

---
- hosts: servers
  roles:
    - codeyourinfra.docker

该角色需要通过 收集信息阶段 获取的一些变量。因此,请不要关闭信息收集。

构建过程

构建过程在 Travis CI 中进行。在构建过程中,使用 Molecule 对该角色进行测试。

如果构建成功,依赖角色的构建也可能被触发,这得益于 travis-dependent-builds 项目。一个例子是 Codeyourinfra docker-compose Ansible 角色

自行测试

首先,创建你的 Python 虚拟环境 并激活它:

python -m venv env && source env/bin/activate

之后,安装所有依赖:

pip install wheel && pip install -r requirements.txt

最后,执行测试:

molecule test

作者信息

@gustavomcarmoCodeyourinfra 的贡献者。欢迎加入! :)

关于项目

Role to install Docker

安装
ansible-galaxy install codeyourinfra.docker
许可证
mit
下载
329
拥有者
And spend your priceless time on what's really worth it