edmondscommerce.copr-repository
Ansible 角色:Copr 仓库管理
原出处 - https://github.com/abn/role-copr-repository
所有的荣誉归原作者。我只为 Ansible Galaxy 添加了元数据,以便更容易地将其作为依赖项引入。
此角色允许从 CentOS/Fedora 主机中添加和移除 copr 仓库。
示例剧本
---
- hosts: all
become: yes
roles:
- copr-repository
独立使用
# 安装仓库
ansible-playbook -i inventory -e copr_repository=abn/repository -e copr_repository_action=install copr-repository.yml
# 移除仓库
ansible-playbook -i inventory -e copr_repository=abn/repository -e copr_repository_action=remove copr-repository.yml
依赖使用 (meta/main.yml)
---
dependencies:
- { role: copr-repository, copr_repository: "abn/repository", copr_repository_action: "install" }