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:
1 parent
f382b5516d
commit
54bbcdb816
1 file changed
+4
@@ -71,6 +71,10 @@
|
|||||||
enabled: false
|
enabled: false
|
||||||
masked: true
|
masked: true
|
||||||
state: stopped
|
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
|
- name: System Configuration (1) | Enable fstrim
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
service: fstrim.timer
|
service: fstrim.timer
|
||||||
|
|||||||
Reference in new issue
Block a user