netplugin_firewalld.yml 495 B

1234567891011121314151617
  1. ---
  2. - name: Netplugin Firewalld | Add internal rules
  3. firewalld:
  4. immediate: true
  5. permanent: true
  6. port: "{{ item[0] }}"
  7. source: "{{ item[1] }}"
  8. with_nested:
  9. - "{{ contiv_netplugin_internal }}"
  10. - "{{ groups.oo_nodes_to_config|difference(hostvars[inventory_hostname]['ansible_' + contiv_netmaster_interface].ipv4.address)|list }}"
  11. - name: Netplugin Firewalld | Add dns rule
  12. firewalld:
  13. immediate: true
  14. permanent: true
  15. port: "53/udp"
  16. interface: contivh0