File tree Expand file tree Collapse file tree
linux_os/guide/system/selinux
selinux_not_disabled/ansible Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77- name : " {{{ rule_title }}} - Check current SELinux state"
88 ansible.builtin.command :
99 cmd : getenforce
10- register : selinux_state
10+ register : current_selinux_state
1111 check_mode : false
1212 changed_when : false
1313
1919 state : touch
2020 access_time : preserve
2121 modification_time : preserve
22- when : selinux_state .stdout | lower != "permissive"
22+ when : current_selinux_state .stdout | lower != "permissive"
Original file line number Diff line number Diff line change 88- name : " {{{ rule_title }}} - Check current SELinux state"
99 ansible.builtin.command :
1010 cmd : getenforce
11- register : selinux_state
11+ register : current_selinux_state
1212 check_mode : false
1313 changed_when : false
1414
2020 state : touch
2121 access_time : preserve
2222 modification_time : preserve
23- when : selinux_state .stdout | lower != var_selinux_state
23+ when : current_selinux_state .stdout | lower != var_selinux_state
You can’t perform that action at this time.
0 commit comments