---
title: "Comment by Keith Mills on \"SELinux and AppArmor\" | Hashnode"
description: "Hello Rodrigo, I&#39;m quite new to AppArmor but I&#39;m really excited to learn all that I can! I&#39;ve read your article on SELinux and AppArmor. I see that"
url: "https://hashnode.com/posts/selinux-and-apparmor/5ca80ecc36c6446d6c7d721b/comment/5d8cb9a70d449511693cfa83"
---

[Discussion](https://hashnode.com/posts/selinux-and-apparmor/5ca80ecc36c6446d6c7d721b)

Comment [SELinux and AppArmor](https://hashnode.com/posts/selinux-and-apparmor/5ca80ecc36c6446d6c7d721b)

[Keith Mills](https://hashnode.com/@semajkp)

[Sep 26, 2019](https://hashnode.com/posts/selinux-and-apparmor/5ca80ecc36c6446d6c7d721b/comment/5d8cb9a70d449511693cfa83)

Hello Rodrigo,

I'm quite new to AppArmor but I'm really excited to learn all that I can! I've read your article on SELinux and AppArmor. I see that you mention complain and enforce modes but not permissive mode! Does this mean that there isn't a permissive mode? Also, you mentioned AppArmor uses profiles defined in text files instead of policy managed by commands. My question is:

For SLSE 15-SP1 how would I set the mode using an Ansible task if this is possible?

This is what I have so far:

---

-   name: install selinux dependencies when selinux is installed on Debian apt: name: \['policycoreutils', 'checkpolicy', 'selinux-basics', 'python-selinux' \] state: present when: ansible\_distribution|lower == 'debian'
-   name: Set SELinux to permissive mode | RHEL selinux: policy: targeted state: permissive register: task\_result when: ansible\_distribution|lower == 'redhat'
-   name: Set SELinux to permissive mode | Debian selinux: policy: default state: permissive register: task\_result when:
    -   ansible\_selinux\_python\_present|bool
    -   ansible\_distribution|lower == 'debian'
-   name: Reboot the server and wait for it to come back up. reboot: when: task\_result is changed ...

As you can see, i don't have a task for AppArmor! If you can help me I would greatly appreciate it!
