使用 Ansible Galaxy 安装角色

使用 Ansible Galaxy 安装角色

使用 Ansible Galaxy 和要求文件 /home/curtis/ansible/roles/requirements.yml 。从以下 URL 下载角色并安装到 /home/curtis/ansible/roles :

http://rhgls.area12.example.com/materials/haproxy.tar 此角色的名称应当为 balancer

http://rhgls.area12.example.com//materials/phpinfo.tar 此角色的名称应当为 phpinfo

复制代码
vim roles/requirements.yml

- src: http://rhgls.area12.example.com/materials/haproxy.tar
  name: balancer
- src: http://rhgls.area12.example.com//materials/phpinfo.tar
  name: phpinfo

ansible-galaxy install -r roles/requirements.yml -p roles/
相关推荐
Sheffield10 小时前
Docker的跨主机服务与其对应的优缺点
linux·网络协议·docker
Sheffield18 小时前
Alpine是什么,为什么是Docker首选?
linux·docker·容器
Johny_Zhao2 天前
centos7安装部署openclaw
linux·人工智能·信息安全·云计算·yum源·系统运维·openclaw
haibindev2 天前
在 Windows+WSL2 上部署 OpenClaw AI员工的实践与踩坑
linux·wsl2·openclaw
0xDevNull3 天前
Linux切换JDK版本详细教程
linux
进击的丸子3 天前
虹软人脸服务器版SDK(Linux/ARM Pro)多线程调用及性能优化
linux·数据库·后端
茶杯梦轩3 天前
从零起步学习RabbitMQ || 第二章:RabbitMQ 深入理解概念 Producer、Consumer、Exchange、Queue 与企业实战案例
服务器·后端·消息队列
Johny_Zhao4 天前
OpenClaw安装部署教程
linux·人工智能·ai·云计算·系统运维·openclaw
AI攻城狮5 天前
用 Playwright 实现博客一键发布到稀土掘金
python·自动化运维