Files
fedora-infra_ansible/roles/hubs/tasks/web-apache.yml
Aurélien Bompard 50da569cb0 Hubs: allow execmem
2018-02-23 10:12:30 +00:00

43 lines
835 B
YAML

# Webserver config
- name: Install the webserver packages
dnf: name={{ item }} state=present
with_items:
- python3-mod_wsgi
- libselinux-python
- policycoreutils-python
- name: Apache configuration for hubs
template:
src: apache.conf
dest: /etc/httpd/conf.d/fedora-hubs.conf
notify:
- restart apache
- name: Allow network connection for Apache
seboolean:
name: httpd_can_network_connect
state: yes
persistent: yes
- name: Allow execmem for Apache
seboolean:
name: httpd_execmem
state: yes
persistent: yes
- name: Allow Apache to write to the cache files
sefcontext:
setype: httpd_sys_rw_content_t
target: "/var/lib/fedora-hubs(/.*)?"
- name: Start and enable the services
service: name={{ item }} state=started enabled=yes
with_items:
- httpd