You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
577 B

  1. ---
  2. - name: Disable firewalld and ufw
  3. when:
  4. - disable_service_firewall is defined and disable_service_firewall
  5. block:
  6. - name: List services
  7. service_facts:
  8. - name: Disable service firewalld
  9. systemd:
  10. name: firewalld
  11. state: stopped
  12. enabled: no
  13. when:
  14. "'firewalld.service' in services and services['firewalld.service'].status != 'not-found'"
  15. - name: Disable service ufw
  16. systemd:
  17. name: ufw
  18. state: stopped
  19. enabled: no
  20. when:
  21. "'ufw.service' in services and services['ufw.service'].status != 'not-found'"