当前位置:网站首页>Ansible cloud computing automation command line compact version
Ansible cloud computing automation command line compact version
2022-04-23 10:03:00 【Database from deleting database to running】
1) install
2) View version
3) The configuration file
4) view help # Must be
5) Simple command line # -m shell -a ' command '
Four common modules :
yum copy file service
Several important concepts :
install present
uninstall absent
upgrade latest
exclude exclude
Designated warehouse enablerepo
Grammar format :
ansible Host name or group name -m Specify modules -a Specific commands
yum modular :
Example 1: Install the latest apache Software , Update if it exists
Example 2: Install the latest apache Software , Install through local warehouse
Example 3: Delete apache Software
copy modular :
Example 1: Local httpd.conf file Listen Port changed to 8080, Then push it to the remote server Group jurisdiction
Example 2: Local httpd.conf file Listen Port changed to 8088, Then push it to the far end , Check whether the last backup file exists at the remote end
Example 3: Write content to the remote host file : content dest
file modular :
Example 1: create a file /var/www/html/demo.html, And set the owner Generic group jurisdiction
Example 2: Create directory /var/www/html/imgs, And set the owner Generic group jurisdiction state=directory
Example 3: Recursive authorization directory recurse=yes path
service modular :
ansible group1 -m service -a "name=httpd state=stopped enabled=yes"
Task name :
The target host :
Several tasks :
Single task : Detailed requirements ( Which modules are needed to support ) (LAMP)
版权声明
本文为[Database from deleting database to running]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230956066907.html
边栏推荐
- [ACM-ICPC 2018 Shenyang Network preliminaries] J. Ka Chang (block + DFS sequence)
- Realizing data value through streaming data integration (5) - flow analysis
- [codeforces - 208e] blood cousins
- 论文阅读《Integrity Monitoring Techniques for Vision Navigation Systems》
- Yarn核心参数配置
- Chapter 3 enable and adjust the size of IM column storage (im-3.1)
- 1D / 1D dynamic programming learning summary
- 通过流式数据集成实现数据价值(1)
- Comparative analysis of meta universe from the dimension of knowledge dissemination
- 101. Symmetric Tree
猜你喜欢

解决VMware卸载后再安装出现的问题
![[untitled]](/img/6c/df2ebb3e39d1e47b8dd74cfdddbb06.gif)
[untitled]

0704、ansible----01

Juc并发编程07——公平锁真的公平吗(源码剖析)

Sim Api User Guide(6)
![[COCI] lattice (dichotomy + tree divide and conquer + string hash)](/img/7b/fe2a45d960a6d3eb7dc25200304adc.png)
[COCI] lattice (dichotomy + tree divide and conquer + string hash)

论文阅读《Integrity Monitoring Techniques for Vision Navigation Systems》——5结果

杰理之更准确地确定异常地址【篇】

構建元宇宙時代敏捷制造的九種能力

Exercise questions and simulation test of refrigeration and air conditioning equipment operation test in 2022
随机推荐
(Extended) bsgs and higher order congruence equation
Chapter 2 Oracle database in memory architecture (I) (im-2.1)
DBA常用SQL语句(2)— SGA和PGA
通过流式数据集成实现数据价值(1)
2022年制冷与空调设备运行操作考试练习题及模拟考试
杰理之更准确地确定异常地址【篇】
Realizing data value through streaming data integration (4) - streaming data pipeline
ansible playbook语法和格式 自动化云计算
Es aggregation aggregation analysis
lnmp的配置
Epidemic prevention registration applet
A concise course of fast Fourier transform FFT
Realize data value through streaming data integration (3) - real-time continuous data collection
Juc并发编程06——深入剖析队列同步器AQS源码
一文读懂PlatoFarm新经济模型以及生态进展
Common DBA SQL statements (4) - Top SQL
2022年上海市安全员C证考试题库及答案
Failureforwardurl and failureurl
Custom login failure handling
Sim Api User Guide(6)