robertdebock.zabbix_repository
Ansible角色 zabbix_repository
在您的系统上安装和配置 zabbix_repository。
GitHub | GitLab | 下载 | 版本 |
---|---|---|---|
示例剧本
此示例来自 molecule/default/converge.yml
,并在每次推送、拉取请求和发布时进行测试。
---
- name: Converge
hosts: all
become: true
gather_facts: true
roles:
- role: robertdebock.zabbix_repository
zabbix_repository_cleanup_requirements: false
zabbix_repository_revert_crypto_policy: false
机器需要做好准备。在 CI 中,这通过 molecule/default/prepare.yml
完成:
---
- name: Prepare
hosts: all
become: true
gather_facts: false
roles:
- role: robertdebock.bootstrap
- role: robertdebock.ca_certificates
另请查看 完整的说明和示例,了解如何使用这些角色。
角色变量
变量的默认值在 defaults/main.yml
中设置:
---
# zabbix_repository 的默认文件
# "zabbix_version_major" 是两个数字值,由句点分隔。
zabbix_repository_version_major: "6.4"
# "zabbix_version_minor" 是一个单一的数字值。
zabbix_repository_version_minor: 1
# RHEL9需要额外的软件包(`crypto-policies-scripts`)。
# 此变量决定是否应将其删除。
zabbix_repository_cleanup_requirements: true
# 在 RHEL9 上必须修改加密政策。此变量决定
# 政策是否应切换回默认值。
zabbix_repository_revert_crypto_policy: true
需求
- requirements.txt 中列出的 pip 包。
使用角色的状态
以下角色用于准备系统。您可以以其他方式准备系统。
需求 | GitHub | GitLab |
---|---|---|
robertdebock.bootstrap | ||
robertdebock.ca_certificates |
上下文
此角色是许多兼容角色的一部分。有关更多信息,请查看 这些角色的文档。
以下是相关角色的概述:
兼容性
该角色已在以下 容器镜像 上进行测试:
容器 | 标签 |
---|---|
EL | 9 |
Debian | bullseye |
Ubuntu | focal |
所需的最低 Ansible 版本为 2.12,已进行测试:
- 旧版本。
- 当前版本。
- 开发版本。
如果您发现问题,请在 GitHub 中登记。
许可证
作者信息
请考虑 赞助我。
安装
ansible-galaxy install robertdebock.zabbix_repository
许可证
apache-2.0
下载
73.5k
拥有者
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.