How to simplify WAAS Ansible script
Summary:
Hello, is there a possibility to simplify the ansible script for WAAS (WAF) protection roles? I tried using loop and with_item but i failed to configure it to work. I am using the ansible oci_waas_protection_rules module: https://oci-ansible-collection.readthedocs.io/en/latest/collections/oracle/oci/oci_waas_protection_rules_module.html
Idea is to put the values for the protection roles in a separated yml file and to use it with some kind of loop or something similar.
Content (required):
- name: Update protection_rules
oci_waas_protection_rules:
waas_policy_id: "{{ waf_id }}"
protection_rules:
Tagged:
0