major refactoring

This commit is contained in:
2022-01-18 23:48:56 +01:00
parent 034332b237
commit fe83fd37f0
40 changed files with 501 additions and 433 deletions

View File

@@ -0,0 +1,17 @@
---
- name: "config: Set hostname"
ansible.builtin.hostname:
name: "{{ config_hostname }}"
use: systemd
become: yes
- name: "firewalld: Configure services"
ansible.posix.firewalld:
service: "{{ item.key }}"
zone: "{{ item.value.zone }}"
state: "{{ item.value.state }}"
immediate: yes
permanent: yes
become: yes
loop: "{{ lookup('dict', config_firewalld_services, wantlist=True) }}"
when: config_firewalld_enable | bool