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:
parent
82cb04d2af
commit
5b6ff817a5
1 changed files with 6 additions and 0 deletions
|
|
@ -71,11 +71,17 @@
|
|||
state: absent
|
||||
path: "{{ nextcloud_package_destination }}/nextcloud/"
|
||||
|
||||
- name: selinux status
|
||||
command: /usr/sbin/getenforce
|
||||
register: selinux_status
|
||||
changed_when: false
|
||||
|
||||
- name: seboolean httpd_unified
|
||||
seboolean:
|
||||
name: httpd_unified
|
||||
state: yes
|
||||
persistent: yes
|
||||
when: selinux_status.stdout != "Disabled"
|
||||
|
||||
- name: enable and start httpd
|
||||
service:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue