使用Ansible Galaxy下载安装角色
RHCE8 练习题:使用 Ansible Galaxy 下载角色
使用 Ansible Galaxy 和 要求文件 /home/student/ansible/roles/requirements.yml 从以下URL下载角色并安装到 /home/student/ansible/roles:
http://materials.example.com/cd/exam_rhce8/haproxy.tar此角色的名称应当为balancerhttp://materials.example.com/cd/exam_rhce8/phpinfo.tar此角色的名称应该为phpinfo
Answer
vim /home/student/ansible/roles/requirements.yml |
|
cd /home/student/ansible |
验证
ll roles/ |

本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Hao DevSecOps!
评论





