Skip to content

Commit

Permalink
removing relabel task
Browse files Browse the repository at this point in the history
  • Loading branch information
rlakey committed Aug 2, 2024
1 parent 18d41c5 commit 2143a5c
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2276,23 +2276,3 @@
- aidecheckoutput.rc is defined
- aidecheckoutput.rc != 0
- aideinstalled.stdout != ""

###################################################################################################################################
- name: PHTN-50-000066 - Relabel files for SELinux
tags: [PHTN-50-000066]
when: run_enable_selinux | bool
block:
- name: PHTN-50-000066 - Check to see if setfiles is present
ansible.builtin.shell: |
set -o pipefail
rpm -qa | grep policycoreutils
register: selinuxinstalled
failed_when: selinuxinstalled.rc == 2
changed_when: false

- name: PHTN-50-000066 - Label files after hardening
ansible.builtin.command: setfiles /etc/selinux/default/contexts/files/file_contexts /
register: output
changed_when: output.rc == 0
when:
- selinuxinstalled.stdout != ""

0 comments on commit 2143a5c

Please sign in to comment.