mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-02-02 20:59:02 +08:00
anubis-el: add missing check for port
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
@@ -47,6 +47,14 @@
|
||||
- config
|
||||
- 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 3923
|
||||
ansible.builtin.command: semanage port -a -t http_port_t -p tcp 3923
|
||||
when: semanageoutput.stdout.find("3923") == -1
|
||||
|
||||
Reference in New Issue
Block a user