netplugin_firewalld.yml 942 B

12345678910111213141516171819202122232425262728293031323334
  1. ---
  2. - name: Netplugin Firewalld | Open Netplugin port
  3. firewalld:
  4. port: "{{ netplugin_port }}/tcp"
  5. permanent: false
  6. state: enabled
  7. # in case this is also a node where firewalld turned off
  8. ignore_errors: yes
  9. - name: Netplugin Firewalld | Save Netplugin port
  10. firewalld:
  11. port: "{{ netplugin_port }}/tcp"
  12. permanent: true
  13. state: enabled
  14. # in case this is also a node where firewalld turned off
  15. ignore_errors: yes
  16. - name: Netplugin Firewalld | Open vxlan port
  17. firewalld:
  18. port: "8472/udp"
  19. permanent: false
  20. state: enabled
  21. # in case this is also a node where firewalld turned off
  22. ignore_errors: yes
  23. when: contiv_encap_mode == "vxlan"
  24. - name: Netplugin Firewalld | Save firewalld vxlan port for flanneld
  25. firewalld:
  26. port: "8472/udp"
  27. permanent: true
  28. state: enabled
  29. # in case this is also a node where firewalld turned off
  30. ignore_errors: yes
  31. when: contiv_encap_mode == "vxlan"