move selinux check to `ceph-defaults`

This check is alone in `ceph-docker-common` since a previous code
refactor.
Moving this check in `ceph-defaults` allows us to run `ceph-clients`
without having to run `ceph-docker-common` even in non-containerized
deployment.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/2494/head
Guillaume Abrioux 2018-03-30 12:38:41 +02:00 committed by Sébastien Han
parent f3caee8460
commit cf27c5e941
3 changed files with 8 additions and 11 deletions

View File

@ -192,3 +192,11 @@
when:
- containerized_deployment
- ceph_docker_image_tag | search("centos") or ceph_docker_image | search("rhceph") or ceph_docker_image_tag | search("fedora")
- name: check if selinux is enabled
command: getenforce
register: sestatus
changed_when: false
check_mode: no
when:
- ansible_os_family == 'RedHat'

View File

@ -98,8 +98,3 @@
# # because it creates the directories needed by the latter.
- name: include dirs_permissions.yml
include: dirs_permissions.yml
- name: include selinux.yml
include: selinux.yml
when:
- ansible_os_family == 'RedHat'

View File

@ -1,6 +0,0 @@
---
- name: check if selinux is enabled
command: getenforce
register: sestatus
changed_when: false
check_mode: no