- yum -y install ansible
- ansible --version
- mkdir /etc/ansible
- touch /etc/ansible/hosts
[example]
www.example.com
- ansible example -m ping -u [username]
- ansible example -a "free -m" -u [username]
标签:dev dir ansi install .com name www. devops log
[example]
www.example.com
标签:dev dir ansi install .com name www. devops log
原文地址:https://www.cnblogs.com/guxiaobei/p/8250988.html