码迷,mamicode.com
首页 > 其他好文 > 详细

Ansible 管理服务和软件

时间:2015-05-07 18:24:13      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:

[root@Ansible ~]# ansible RAC -m yum -a name=iscsi-initiator-utils state=installed
RAC_Node1 | success >> {
"changed": false, 
"msg": "", 
"rc": 0, 
"results": [
"iscsi-initiator-utils-6.2.0.873-13.el6.x86_64 providing iscsi-initiator-utils is already installed"
]
}

RAC_Node2 | success >> {
"changed": false, 
"msg": "", 
"rc": 0, 
"results": [
"iscsi-initiator-utils-6.2.0.873-13.el6.x86_64 providing iscsi-initiator-utils is already installed"
]
}

[root@Ansible ~]# ansible RAC -m service -a name=iscsi state=restarted
RAC_Node1 | success >> {
"changed": true, 
"name": "iscsi", 
"state": "started"
}

RAC_Node2 | success >> {
"changed": true, 
"name": "iscsi", 
"state": "started"
}

 

导读:http://www.ithov.com/linux/136836.shtml

Ansible 管理服务和软件

标签:

原文地址:http://www.cnblogs.com/storymedia/p/4485418.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!