当前位置:网站首页>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-7-28
【转】Unity 内置渲染管线、SRP、URP、HDRP区别
购买专栏请看看说明
中国移动通信集团有限公司:业务委托书
unity小技巧
2022年全国职业技能大赛网络安全竞赛试题B模块自己解析思路(9)
【力扣】寻找数组的中心下标
Solve the problem that port 8080 is occupied
SECURITY DAY02( Zabbix报警机制 、 Zabbix进阶操作 、 监控案例)
SSL证书为什么要选付费?
实操指南:多个域名该买哪种SSL证书?
处理eking.Devos勒索病毒防范解密恢复操作攻略
Apache Fink 文件上传漏洞复现及利用
AUTOMATION DAY07( Ansible Vault 、 普通用户使用ansible)
C# 基础之字典——Dictionary(二)
ssh中的密码登录和密钥登录
Jedis连接问题!!
Es常用操作和经典case整理
不同类型SSL证书怎么选?
消息中间件