当前位置:网站首页>AUTOMATION DAY06 (Ansible Advanced, Ansible Role)
AUTOMATION DAY06 (Ansible Advanced, Ansible Role)
2022-08-11 06:59:00 【zoujiangMr】
Case 1: Ansible Application Case
Case 2: Ansible Roles
1 Case 1: Ansible application case
1.1 Question
This case requires more advanced grammar knowledge of Ansible, the specific requirements are as follows:
- Familiar with firewalld and template modules
- Familiar with the error handling mechanism
- Familiar with handler tasks
- Familiar with when conditional judgment
- Familiar with the block task block
- Familiar with how to use the loop loop
1.2 Steps
The following steps are required to implement this case.
Step 1: firewalld module
Use the firewalld module to configure firewall policies.
[[email protected] ~]# vim ~/ansible/firewall.yml---- hosts: test #hosts defines the hosts that need to be remotetasks: 边栏推荐
猜你喜欢
随机推荐
无胁科技-TVD每日漏洞情报-2022-8-8
将UI的点击事件渗透下去
ETCD集群故障应急恢复-本地数据可用
本地yum源搭建
Apache Fink 文件上传漏洞复现及利用
Threatless Technology-TVD Daily Vulnerability Intelligence-2022-7-30
UE4打包工程失败问题记录
SSL证书部署后,为什么还是显示不安全?
lua杂记
MySQL中忘记用户密码怎么办?
Threatless Technology-TVD Daily Vulnerability Intelligence-2022-7-22
BaseActvity的抽取
Threatless Technology-TVD Daily Vulnerability Intelligence-2022-8-5
Deep Learning Matlab Toolbox Code Comments
文本三剑客——sed 修改、替换
ramdisk实践1:将根文件系统集成到内核中
Lua loadstring 执行字符串中的代码
CLR via C# 第五章 基元类型、引用类型和值类型
Unity Rebuild和Rebatch浅析
Unity Mesh、MeshFilter、MeshRenderer扫盲









