mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 12:07:34 +08:00
anubis: allow httpd to bind to port 8345
Tell selinux that httpd can use port 8345 in enforcing mode. It needs to do this to listen for post anubis requests coming in on localhost. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
@@ -33,6 +33,20 @@
|
||||
tags:
|
||||
- anubis
|
||||
|
||||
- name: Check semanage ports
|
||||
ansible.builtin.command: semanage port -l
|
||||
register: semanageoutput
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- anubis
|
||||
|
||||
- name: Set ports so httpd can bind to 8345
|
||||
ansible.builtin.command: semanage port -a -t http_port_t -p tcp 8345
|
||||
when: semanageoutput.stdout.find("8345") == -1
|
||||
tags:
|
||||
- anubis
|
||||
|
||||
- name: Allow Apache to make network connections for proxy
|
||||
ansible.posix.seboolean:
|
||||
name: httpd_can_network_connect
|
||||
|
||||
Reference in New Issue
Block a user