mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-12 19:06:39 +08:00
openqa/worker: create custom SELinux module directory first
Whoops. Also order these things a bit better. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
@@ -288,9 +288,11 @@
|
||||
- openqa-websockets
|
||||
- openqa-gru
|
||||
|
||||
# we used to set this as a bigger hammer to let httpd connect to openQA
|
||||
- name: Unset httpd_can_network_connect SELinux boolean
|
||||
seboolean: name=httpd_can_network_connect state=no persistent=yes
|
||||
- name: Create somewhere to stick our custom SELinux module
|
||||
file:
|
||||
path: /usr/local/share/selinux
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Copy over custom SELinux module allowing httpd to connect to openQA
|
||||
copy: src=httpd-openqa.pp dest=/usr/local/share/selinux/httpd-openqa.pp owner=root group=root mode=0644
|
||||
@@ -300,6 +302,10 @@
|
||||
command: semodule -i /usr/local/share/selinux/httpd-openqa.pp
|
||||
when: selinux_module is changed
|
||||
|
||||
# we used to set this as a bigger hammer to let httpd connect to openQA
|
||||
- name: Unset httpd_can_network_connect SELinux boolean
|
||||
seboolean: name=httpd_can_network_connect state=no persistent=yes
|
||||
|
||||
- name: Allow Apache to read from NFS (as we store test data files there now)
|
||||
seboolean: name=httpd_use_nfs state=yes persistent=yes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user