1
0
Fork 0
mirror of https://github.com/shouptech/ansible-role-nextcloud.git synced 2026-02-03 15:09:42 +00:00

Add selinux status check

The seboolean module will fail if selinux is enabled
This commit is contained in:
Mike Shoup 2017-11-10 18:46:41 -07:00
parent 82cb04d2af
commit 5b6ff817a5

View file

@ -71,11 +71,17 @@
state: absent state: absent
path: "{{ nextcloud_package_destination }}/nextcloud/" path: "{{ nextcloud_package_destination }}/nextcloud/"
- name: selinux status
command: /usr/sbin/getenforce
register: selinux_status
changed_when: false
- name: seboolean httpd_unified - name: seboolean httpd_unified
seboolean: seboolean:
name: httpd_unified name: httpd_unified
state: yes state: yes
persistent: yes persistent: yes
when: selinux_status.stdout != "Disabled"
- name: enable and start httpd - name: enable and start httpd
service: service: