标签:服务 bsp service ansi ted nbsp host span started
ansible 使用 yum 模块来安装软件包,使用 service 模块来启动软件:
[root@localhost ~]$ ansible 192.168.119.134 -m yum -a "name=httpd" # 安装软件包 [root@localhost ~]$ ansible 192.168.119.134 -m yum -a "name=httpd state=removed" # 卸载软件包 [root@localhost ~]$ ansible 192.168.119.134 -m service -a "name=httpd state=started enabled=yes" # 启动并设置成开机启动
标签:服务 bsp service ansi ted nbsp host span started
原文地址:https://www.cnblogs.com/pzk7788/p/10213567.html