Add base role and playbook, molecule configuration

This commit is contained in:
Guido Grazioli
2021-12-14 11:26:42 +01:00
parent b23c54409f
commit 187473447d
35 changed files with 3658 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
---
- name: Ensures required package firewalld are installed
ansible.builtin.include_tasks: fastpackages/install.yml
vars:
packages_list:
- firewalld
- name: Enable and start the firewalld service
become: yes
systemd:
name: firewalld
enabled: yes
state: started
- name: Configure firewall for jdg ports
become: yes
ansible.posix.firewalld:
port: "{{ item }}"
permanent: true
state: enabled
immediate: yes
loop:
- "{{ keycloak_http_port }}/tcp"
- "{{ keycloak_https_port }}/tcp"
- "8009/tcp"