robertdebock.elastic_repo
Ansible 角色 elastic_repo
本角色自 2023 年 12 月起已归档。
在系统上安装 Elastic 仓库。
GitHub | GitLab | 下载 | 版本 |
---|---|---|---|
示例剧本
这个示例来自于 molecule/default/converge.yml
,在每次推送、拉取请求和发布时都会进行测试。
---
- name: 汇聚
hosts: all
become: yes
gather_facts: yes
roles:
- role: robertdebock.elastic_repo
elastic_repo_cleanup_requirements: no
elastic_repo_revert_crypto_policy: no
机器需要预先准备。在 CI 中使用 molecule/default/prepare.yml
完成此过程:
---
- name: 准备
hosts: all
become: yes
gather_facts: no
roles:
- role: robertdebock.bootstrap
- role: robertdebock.core_dependencies
有关如何使用这些角色的 完整说明和示例。
角色变量
变量的默认值设置在 defaults/main.yml
中:
---
# elastic_repo 的默认文件
# 本软件可在 Elastic 许可证下免费使用。
# 也提供包含仅在 Apache 2.0 许可证下可用功能的替代包。
# RHEL9 需要一个额外的软件包(`crypto-policies-scripts`)。
# 此变量决定是否应将其删除。
elastic_repo_cleanup_requirements: yes
# 在 RHEL9 上必须修改加密策略。此变量决定是否应将
# 策略切换回默认值。
elastic_repo_revert_crypto_policy: yes
要求
- 在 requirements.txt 中列出的 pip 包。
使用的角色状态
以下角色用于准备系统。您可以以其他方式准备您的系统。
需求 | GitHub | GitLab |
---|---|---|
robertdebock.bootstrap | ||
robertdebock.core_dependencies |
上下文
该角色是许多兼容角色的一部分。有关更多信息,请查看这些角色的 文档。
以下是相关角色的概述:
兼容性
该角色已在以下 容器镜像 中进行了测试:
容器 | 标签 |
---|---|
Amazon | 所有 |
Debian | 所有 |
EL | 所有 |
Fedora | 所有 |
Ubuntu | 所有 |
所需的最低 Ansible 版本为 2.12,测试已经在:
- 前一个版本。
- 当前版本。
- 开发版本。
如发现问题,请在 GitHub 中注册。
许可证
作者信息
请考虑 赞助我。
安装
ansible-galaxy install robertdebock.elastic_repo
许可证
apache-2.0
下载
125.2k
拥有者
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.