Check if ufw is installed before attempting to disable it (#807)

Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
This commit is contained in:
Alex LehmanandDevin Buhl authored and GitHub committed 2023-06-25 09:21:18 -04:00
1 parent f382b5516d
commit 54bbcdb816
1 file changed
+4
+4
View File
@@ -71,6 +71,10 @@
enabled: false
masked: true
state: stopped
register: stop_service
failed_when:
- stop_service.failed == true
- '"Could not find the requested service" not in stop_service.msg'
- name: System Configuration (1) | Enable fstrim
ansible.builtin.systemd:
service: fstrim.timer