当前位置:网站首页>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
边栏推荐
- GCD of p2257 YY (Mobius inversion)
- shell脚本免交互
- 通过流式数据集成实现数据价值(5)- 流分析
- [ACM-ICPC 2018 Shenyang Network preliminaries] J. Ka Chang (block + DFS sequence)
- A concise course of fast Fourier transform FFT
- Sim Api User Guide(8)
- Explanation of order and primitive root of number theory
- DBA常用SQL语句(4)- Top SQL
- 2022年广东省安全员A证第三批(主要负责人)考试试题及答案
- Less than 100 secrets about prime numbers
猜你喜欢

实践六 Windows操作系统安全攻防

Examination questions and answers of the third batch (main person in charge) of Guangdong safety officer a certificate in 2022

Windows安装redis并将redis设置成服务开机自启

面试官:说几个PHP常用函数,幸好我面试之前看到了这篇文章

Exercise questions and simulation test of refrigeration and air conditioning equipment operation test in 2022

2022茶艺师(初级)考试试题模拟考试平台操作

一文看懂 LSTM(Long Short-Term Memory)

2022年上海市安全员C证考试题库及答案

Chinese Remainder Theorem and extended Chinese remainder theorem that can be understood by Aunt Baojie

Number theory blocking (integer division blocking)
随机推荐
ARM调试(1):两种在keil中实现printf重定向到串口的方法
Cloud identity is too loose, opening the door for attackers
2022 mobile crane driver test question bank simulation test platform operation
杰理之有时候发现内存被篡改,但是没有造成异常,应该如何查找?【篇】
杰理之AES能256bit吗【篇】
Realize data value through streaming data integration (2)
Chapter 3 enable and adjust the size of IM column storage (im-3.1)
正大国际讲解道琼斯工业指数到底是什么?
第一章 Oracle Database In-Memory 相关概念(续)(IM-1.2)
[COCI] lattice (dichotomy + tree divide and conquer + string hash)
formatTime时间戳格式转换
杰理之系统事件有哪些【篇】
art-template 模板引擎
Prefix sum of integral function -- Du Jiao sieve
2022茶艺师(初级)考试试题模拟考试平台操作
第一章 Oracle Database In-Memory 相关概念(IM-1.1)
论文阅读《Integrity Monitoring Techniques for Vision Navigation Systems》——3背景
Failureforwardurl and failureurl
Introduction to graph theory -- drawing
Construire neuf capacités de fabrication agile à l'ère métacosmique