mirror of
https://github.com/shouptech/ansible-role-nextcloud.git
synced 2026-02-03 06:59:42 +00:00
Add selinux status check
The seboolean module will fail if selinux is enabled
This commit is contained in:
parent
82cb04d2af
commit
5b6ff817a5
1 changed files with 6 additions and 0 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue