diff --git a/files/selinux/duo.pp b/files/selinux/duo.pp new file mode 100644 index 0000000..cf18fca Binary files /dev/null and b/files/selinux/duo.pp differ diff --git a/tasks/main.yml b/tasks/main.yml index b9a2549..a2b0564 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -43,4 +43,20 @@ notify: restart sshd - name: Flush Handlers - meta: flush_handlers \ No newline at end of file + meta: flush_handlers + +- name: Duo SELinux Enablement + block: + - name: Copy SELinux Module + copy: + src: files/duo.pp + dest: /tmp/duo.pp + + - name: Install Policy (Ensure we can access DUO Api) + command: /usr/sbin/semodule -i /tmp/duo.pp + + - name: Remove Policy file + file: + path: /tmp/duo.pp + state: absent + \ No newline at end of file