标签:云服务器 bash hosts pen log -- upd play div
vim packages.yml
--- - hosts: all tasks: - name: "update git" yum: name=git state=latest - name: "update perl-git" yum: name=perl-Git state=latest - name: "expat" yum: name=expat state=latest - name: "update openssl" yum: name=openssl state=latest ...
执行方法: ansible-playbook packages.yml
注意要点:使用ansible的yum模块
标签:云服务器 bash hosts pen log -- upd play div
原文地址:http://www.cnblogs.com/to-be-rich/p/7509398.html