fix: #990 don't disable apparmor unless it's installed (#991)

This commit is contained in:
bri authored and GitHub committed 2023-10-24 19:51:15 -04:00
1 parent 82b17cd6cf
commit a4642e6e52
1 file changed
+3
@@ -8,6 +8,8 @@
- name: Pausing for 5 seconds...
ansible.builtin.pause:
seconds: 5
- name: Populate service facts
service_facts:
tasks:
- name: Locale
block:
@@ -80,6 +82,7 @@
mode: "0755"
content: neofetch --config none
- name: System Configuration | Disable apparmor
when: ansible_facts.services['apparmor.service'] is defined
ansible.builtin.systemd:
name: apparmor
state: stopped