mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-04-05 10:20:27 -07:00
20 lines
557 B
YAML
20 lines
557 B
YAML
---
|
|
- name: Ensure required package iptables are installed
|
|
ansible.builtin.include_tasks: fastpackages.yml
|
|
vars:
|
|
packages_list:
|
|
- iptables
|
|
|
|
- name: "Configure firewall ports for {{ keycloak.service_name }}"
|
|
become: true
|
|
ansible.builtin.iptables:
|
|
destination_port: "{{ item }}"
|
|
action: "insert"
|
|
rule_num: 6 # magic number I forget why
|
|
chain: "INPUT"
|
|
policy: "ACCEPT"
|
|
protocol: tcp
|
|
loop:
|
|
- "{{ keycloak_quarkus_http_port }}"
|
|
- "{{ keycloak_quarkus_https_port }}"
|
|
- "{{ keycloak_quarkus_jgroups_port }}"
|