diff --git a/ansible/playbooks/tasks/openqa.yml b/ansible/playbooks/tasks/openqa.yml index e824513..51d5402 100644 --- a/ansible/playbooks/tasks/openqa.yml +++ b/ansible/playbooks/tasks/openqa.yml @@ -62,6 +62,19 @@ enabled: true loop: "{{ openqa_services }}" +- name: Create openqa-vnc firewalld service + template: + src: etc/firewalld/services/openqa-vnc.xml.j2 + dest: /etc/firewalld/services/openqa-vnc.xml + owner: root + group: root + mode: "0644" + +- name: Load openqa-vnc firewalld service + systemd: + name: firewalld + state: reloaded + - name: Permit traffic for {{ item }} service ansible.posix.firewalld: service: "{{ item }}" @@ -69,12 +82,7 @@ state: enabled loop: - http - -- name: Permit VNC traffic for local workers - ansible.posix.firewalld: - port: "{{ openqa_min_vnc_port }}-{{ openqa_max_vnc_port }}/tcp" - permanent: true - state: enabled + - openqa-vnc - name: Reload FirewallD systemd: diff --git a/ansible/playbooks/templates/etc/firewalld/services/openqa-vnc.xml.j2 b/ansible/playbooks/templates/etc/firewalld/services/openqa-vnc.xml.j2 new file mode 100644 index 0000000..e125b1c --- /dev/null +++ b/ansible/playbooks/templates/etc/firewalld/services/openqa-vnc.xml.j2 @@ -0,0 +1,4 @@ + + + +