ansible安装httpd

Posted on 2016-11-29 15:20  奔跑吧.蜗牛  阅读(460)  评论(0)    收藏  举报

---
 - hosts: web
   tasks:
       - name: "INSTALL"
         yum: name={{ item  }} state=present
         with_items:
           - httpd
           - httpd-devel
       - name: "START"
         service: name=httpd state=started enabled=yes
                                                      

ansible初次接触,自动安装httpd脚本。