File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414
1515- name : Restore SELinux label on RAID array
1616 command : restorecon /raid
17- when : ansible_os_family == 'RedHat'
17+ when :
18+ - ansible_os_family == 'RedHat'
19+ - (ansible_selinux is defined) and (ansible_selinux.status != "disabled")
1820 notify : restart cachefilesd
Original file line number Diff line number Diff line change 3939 target : ' /lib64(/.*)?'
4040 setype : mysqld_db_t
4141 state : present
42- when : ansible_os_family == "RedHat"
42+ when :
43+ - ansible_os_family == "RedHat"
44+ - (ansible_selinux is defined) and (ansible_selinux.status != "disabled")
4345
4446- name : Apply new SELinux file context to filesystem
4547 command : restorecon -irv /lib64
46- when : ansible_os_family == "RedHat"
48+ when :
49+ - ansible_os_family == "RedHat"
50+ - (ansible_selinux is defined) and (ansible_selinux.status != "disabled")
4751
4852- name : start mariadb
4953 systemd :
You can’t perform that action at this time.
0 commit comments