refactor(services): remove unnecessary firewalld services disablement.

It is not needed if the firewalld package is not installed in the first
place
This commit is contained in:
2026-01-05 18:19:14 +01:00
parent 315fdef69f
commit 23f08b350b

View File

@@ -14,10 +14,3 @@
}}
register: configuration_enable_services_result
changed_when: configuration_enable_services_result.rc == 0
- name: Disable firewalld when disabled
when: not firewalld_enabled | bool
ansible.builtin.command: "{{ chroot_command }} /mnt systemctl disable --now firewalld"
register: configuration_disable_firewalld_result
changed_when: configuration_disable_firewalld_result.rc == 0
failed_when: false