# platform = multi_platform_all
# reboot = false
# strategy = enable
# complexity = low
# disruption = low
- name: "Ensure AppArmor is Active and Configured - Enable service apparmor"
  block:
  - name: Gather the package facts
    ansible.builtin.package_facts:
      manager: auto
  - name: "Ensure AppArmor is Active and Configured - Enable Service apparmor"
    ansible.builtin.systemd:
      name: "apparmor"
      enabled: true
      state: "started"
      masked: false
    when:
    - '"apparmor" in ansible_facts.packages'
  tags:
  - special_service_block