当前位置:网站首页>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-29
(2) Software Testing Theory (*Key Use Case Method Writing)
2022年全国职业技能大赛网络安全竞赛试题B模块自己解析思路(7)
VMware workstation 16 安装与配置
VirtualAPK初探
无胁科技-TVD每日漏洞情报-2022-7-18
本地yum源搭建
C# 基础之字典——Dictionary(一)
lua-table引用传递和值传递
2022年全国职业技能大赛网络安全竞赛试题B模块自己解析思路(1)
Django QuerySet.order_by() SQL注入漏洞复现
Threatless Technology-TVD Daily Vulnerability Intelligence-2022-7-25
IP证书申请
Unity3D中所有特殊的文件夹
poco源码简单分析
记录一个刚写的Makefile
Threatless Technology-TVD Daily Vulnerability Intelligence-2022-8-6
(三)软件测试理论(了解软件的缺陷知识)
unity小技巧
ssh中的密码登录和密钥登录