Skip to content

Commit

Permalink
fix: do not manipulate /etc/selinux/config
Browse files Browse the repository at this point in the history
  • Loading branch information
bachradsusi committed Oct 5, 2023
1 parent 51e88de commit efd823a
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions tests/tests_modifications_with_selinux_disabled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,6 @@
user:
comment: Linux System Roles SELinux User
name: sar-user
- name: Backup original /etc/selinux/config
copy:
remote_src: true
src: /etc/selinux/config
dest: /etc/selinux/config.test_selinux_disabled
mode: preserve
- name: Upload testing /etc/selinux/config
copy:
src: selinux.config
dest: /etc/selinux/config
mode: preserve
- name: Switch to permissive to allow login when selinuxfs is not mounted
command: setenforce 0
changed_when: false
Expand Down Expand Up @@ -77,18 +66,6 @@
- name: Cleanup
tags: ['tests::cleanup']
block:
- name: Restore original /etc/selinux/config
copy:
remote_src: true
dest: /etc/selinux/config
src: /etc/selinux/config.test_selinux_disabled
mode: preserve

- name: Remove /etc/selinux/config backup
file:
path: /etc/selinux/config.test_selinux_disabled
state: absent

- name: Remove Linux System Roles SELinux User
user:
name: sar-user
Expand Down

0 comments on commit efd823a

Please sign in to comment.