当前位置:网站首页>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:
边栏推荐
猜你喜欢
勒索病毒eking.devos.mkp.makop.lockbit.eight.locked.roger等剖析及中毒文件恢复
项目笔记——随机2
lvm 多盘挂载,合并使用
Apache APISIX 默认密钥漏洞复现
Drupal 远程代码执行漏洞复现(CVE-2018-7602)
Unity的程序集Assembly 与 加快代码编译速度
Error in render: “TypeError: Cannot read properties of undefined (reading ‘commentsContent‘)“
Redis学习笔记【三】
Unity3D中所有特殊的文件夹
[HTB]渗透Backdoor靶机
随机推荐
Vulnhub靶机--Chronos
文本三剑客——awk 截取+过滤+统计
脚本批量打包渠道包研究
UE4打包工程失败问题记录
程序集与反射技术(C#)
What should I do if I forget the user password in MySQL?
脚本自动选择Hierarchy或Project下的对象
lvm 多盘挂载,合并使用
【转】Unity 内置渲染管线、SRP、URP、HDRP区别
SSL证书部署后,为什么还是显示不安全?
2022年全国职业技能大赛网络安全竞赛试题B模块自己解析思路(4)
mysql数据库安装教程(超级超级详细)
Project Notes - Take Notes
2022年全国职业技能大赛网络安全竞赛试题B模块自己解析思路(5)
vnc远程桌面安装(2021-10-20日亲测可用)
Lua 字符串
VMware workstation 16 安装与配置
Vulnhub靶机--DC7
C# 基础之字典——Dictionary(二)
无胁科技-TVD每日漏洞情报-2022-7-28