firewall_settings.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Copyright 2021 Dell Inc. or its subsidiaries. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ---
  15. #Tasks for modifying firewall configurations for Cobbler
  16. - name: Permit traffic in default zone on port 80/tcp
  17. firewalld:
  18. port: 80/tcp
  19. permanent: yes
  20. state: enabled
  21. tags: install
  22. - name: Permit traffic in default zone on port 443/tcp
  23. firewalld:
  24. port: 443/tcp
  25. permanent: yes
  26. state: enabled
  27. tags: install
  28. - name: Permit traffic in default zone for dhcp service
  29. firewalld:
  30. service: dhcp
  31. permanent: yes
  32. state: enabled
  33. tags: install
  34. - name: Permit traffic in default zone on port 69/tcp
  35. firewalld:
  36. port: 69/tcp
  37. permanent: yes
  38. state: enabled
  39. tags: install
  40. - name: Permit traffic in default zone on port 69/udp
  41. firewalld:
  42. port: 69/udp
  43. permanent: yes
  44. state: enabled
  45. tags: install
  46. - name: Permit traffic in default zone on port 4011/udp
  47. firewalld:
  48. port: 4011/udp
  49. permanent: yes
  50. state: enabled
  51. tags: install
  52. - name: Reboot firewalld
  53. systemd:
  54. name: firewalld
  55. state: reloaded
  56. tags: install