一、基本概念
二、安装
2.1 安装python
yum install python3
2.2 pip3 install --user ansible
yum install -y epel-release
yum install -y ansible
三、使用
3.1 基础:运行命令
ansible -i ./hosts remote -v -m ping -u root --private-key=~/.ssh/id_rsa
3.2 剧本(Playbooks)
ansible-playbook -i ./hosts nginx.yml
四、文档
http://www.ansible.com.cn/index.html
https://blog.csdn.net/pushiqiang/article/details/78126063
版权属于:sunjianhua
本文链接:https://sunjianhua.cn/archives/centos-ansible.html
转载时须注明出处及本声明,如果不小心侵犯了您的权益,请联系邮箱:NTA2MTkzNjQ1QHFxLmNvbQ==
niubiOωO