Ansible Firewall module
1 TopicANSIBLE Configuration of a firewall rule list to be added on desired position in the firewall policy
The goal is to create a rule list and add it to a policy in a desired position(top, 2nd, 3rd, etc). It works but in last task: "Add rule listto Policy" it adds the rule list in the LAST LINE. I cannot find a parameter in this module (bigip_firewall_rule) to set the "rule list" position/order within the Firewall policy Here are the playbook tasks - name: CREATE FIREWALL RULE LIST bigip_firewall_rule_list: name: RLIST_1 state: present rules: - RULE A -RULE B provider: "{{ provider }}" - name: CREATE FIREWALL RULES bigip_firewall_rule: parent_rule_list:RLIST_1 name: "{{ item.name }}" state: present protocol: "{{ item.protocol }}" source: - vlan: EXTERNAL - address_list: "{{ item.source_address }}" destination: - address_list: "{{ item.destination_address }}" - port_range: "{{ item.dest_port }}" action: "{{ item.action }}" logging: true provider: "{{ provider }}" with_items: - {name: RULE A, protocol: tcp, source_address: 10.20.10.1, destination_address: 10.10.10.1, dest_port: 443-443, action: accept-decisively} - {name: RULE B, protocol: tcp, source_address:10.20.10.2 destination_address: 10.10.10.2, dest_port: 443-443, action: accept-decisively} - name: Add rule list to Policy bigip_firewall_rule: parent_policy: POL-TEST1 rule_list: RLIST_1 name: RLIST_1 provider: "{{ provider }}"Solved1.6KViews0likes7Comments