当前位置:网站首页>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: 边栏推荐
猜你喜欢
随机推荐
ETCD集群故障应急恢复-本地数据可用
树莓派设置静态IP地址
ETCD集群故障应急恢复-从snapshot恢复
SECURITY DAY05(Kali系统 、 扫描与抓包 、 SSH基本防护、服务安全 )
Threatless Technology-TVD Daily Vulnerability Intelligence-2022-7-19
2022年全国职业技能大赛网络安全竞赛试题B模块自己解析思路(8)
Threatless Technology-TVD Daily Vulnerability Intelligence-2022-7-20
ssh中的密码登录和密钥登录
文本三剑客——sed 修改、替换
Threatless Technology-TVD Daily Vulnerability Intelligence-2022-8-6
脚本批量打包渠道包研究
Vulnhub靶机--Chronos
Vulnhub靶机--born2root
查看可执行文件依赖的库ldd
程序集与反射技术(C#)
【力扣】判断子序列
C语言两百题(0基础持续更新)(1~5)
2022年全国职业技能大赛网络安全竞赛试题B模块自己解析思路(9)
Unity Rebuild和Rebatch浅析
SECURITY DAY06( iptables防火墙 、 filter表控制 、 扩展匹配、nat表典型应用 )









