当前位置:网站首页>RHCE ansible first operation
RHCE ansible first operation
2022-07-19 02:52:00 【 ᝰꫛꫀꪝ】
1、 With all The host group is the target id command
[[email protected] test1]$ ansible all -m command -a ‘id’
2、 Use copy The module modifies... On all hosts /etc/motd The content of the document is welcome to ansible
[[email protected] test1]$ ansible all -m copy -a ‘content=“welcome to ansible\n” dest=/etc/motd’
3、 Use command Module view /etc/motd The content of the document
[[email protected] test1]$ ansible all -m command -a ‘cat /etc/motd’
4、 Use user Module creation user wukong,uid by 2000
[[email protected] test1]$ ansible all -m user -a ‘name=wukong uid=2000’
5、 Use yum Module installation httpd Package and use service Module starts the service
[[email protected] test1]$ ansible all -m yum -a ‘name=httpd’
[[email protected] test1]$ ansible all -m service -a ‘name=httpd state=started’
边栏推荐
- DNS domain name resolution
- MySQL backup and recovery
- Shell脚本变量、脚本编写和执行(部署Apache与远程备份MySQL数据库)
- HCIA_NAT实验
- Leetcode buckle classic topic - 82 Maximum rectangle in column chart
- 时间复杂度和空间复杂度分析技巧
- SSH远程控制与访问
- Unicast、Multicast、Broadcast
- RHCE-ansible-第一次作业
- A practical case of redisson's implementation of distributed locks - lock single key - lock multiple keys - watchdog
猜你喜欢
随机推荐
WINRAR命令拷贝指定文件夹为压缩文件,调用计划任务进行备份。
DHCP原理与配置
微信小程序--Taro框架实际开发中的问题汇总
责任链模式的高级用法
FTP service
Rip comprehensive experiment
A practical case of redisson's implementation of distributed locks - lock single key - lock multiple keys - watchdog
shell脚本之循环语句与函数
Redis之简单动态字符串SDS
rsync远程同步(增量备份)
Firewalld 防火墙
Shell script integer value comparison, logic test, if statement, extract performance monitoring indicators
一文搞懂JVM内存结构
Expect interaction free
Traversal of binary tree
Arm cross compiler naming rules
Mysql database installation
3、AsyncTool框架原理源码解析
RHCE8学习指南 第6章 归档与压缩
数组、冒泡的认识









