service - 当策略中有多个服务时,Ansible for Fortigate 策略不起作用
问题描述
我尝试使用 ansible 来创建具有多个服务的防火墙策略并出现错误。就像下面的例子。
如果只有一个服务,比如只有 HTTP,那么 ansible 不会产生任何问题。
有任何想法吗?
-name: Add Policy
fortios_firewall_policy:
vdom: FG-traffic
state: "present"
firewall_policy:
name: "test_policy"
policyid: 0
action: "accept"
dstaddr:
-
name: "192.168.30.101"
dstintf:
-
name: "Port2_VLAN30"
srcaddr:
-
name: "192.168.20.101"
srcintf:
-
name: "Port1_VLAN20"
service:
-
name: "HTTP" "HTTPS"
schedule: "always"
nat: "enable"
解决方案
推荐阅读
- html - 导航栏没有 UL 标记 - 无法在页面上居中链接
- dart - 从 LatLng 列表计算总距离
- sql - CTE中的Getdate导致数据过度乘法
- c# - 如何使用 X509Certificate 对 IoT 设备进行身份验证
- python - Scrapy/Python 从产量请求中获取项目
- javascript - Paho MQTT JS 客户端发布,但不会订阅
- ios - 让两个按钮打开两个不同的视图控制器
- kubernetes - 如何使 Helm 安装使用“kubectl apply”而不是“kubectl create”
- android - 单击 service-worker ng7 + android 处理的推送通知时打开 PWA
- firebase - Firestore 如何在使用 FirebaseUI 登录时将用户文档添加到集合