new role and FWCNs

This commit is contained in:
2025-11-27 10:02:06 +01:00
parent 24d0ce3385
commit d96bb79a5a
10 changed files with 169 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
---
- hosts: all
handlers:
- import_tasks: global_handlers/global_handlers.yml
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
connection: local
vars_files:
- "{{ lookup('first_found', ['os_vars/' + (ansible_distribution | lower) + '.yml'], errors='ignore') }}"
@@ -62,7 +62,7 @@
# run roles
- hosts: all
handlers:
- import_tasks: global_handlers/global_handlers.yml
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
tags: base
become: true
roles:
@@ -82,18 +82,18 @@
roles:
- server
handlers:
- import_tasks: global_handlers/global_handlers.yml
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
- hosts: bastionhost
tags: server,bastionhost
handlers:
- import_tasks: global_handlers/global_handlers.yml
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
become: true
roles:
- bastionhost
post_tasks:
- name: Update AIDE database if changes were made
include_role:
ansible.builtin.include_role:
name: bastionhost
tasks_from: system_setup/aide_update.yml
when: (aide_db_needs_update is defined and aide_db_needs_update) and (aide_db is defined and aide_db.stat.exists)
@@ -101,7 +101,7 @@
- hosts: nameserver
tags: server,nameserver
handlers:
- import_tasks: global_handlers/global_handlers.yml
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
become: true
roles:
- nameserver
@@ -110,7 +110,7 @@
tags: server,webservers
become: true
handlers:
- import_tasks: global_handlers/global_handlers.yml
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
roles:
- webservers
@@ -118,7 +118,7 @@
tags: server,mailserver
become: true
handlers:
- import_tasks: global_handlers/global_handlers.yml
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
roles:
- mailserver
@@ -126,7 +126,7 @@
tags: server,database
become: true
handlers:
- import_tasks: global_handlers/global_handlers.yml
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
roles:
- database
@@ -139,7 +139,7 @@
- hosts: docker
tags: server,docker
handlers:
- import_tasks: global_handlers/global_handlers.yml
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
become: true
roles:
- docker
@@ -148,7 +148,7 @@
tags: server,podman
become: true
handlers:
- import_tasks: global_handlers/global_handlers.yml
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
roles:
- podman
@@ -156,7 +156,7 @@
tags: server,docker,drone
become: true
handlers:
- import_tasks: global_handlers/global_handlers.yml
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
roles:
- drone
@@ -169,7 +169,7 @@
- hosts: mastodon
tags: server,mastodon
handlers:
- import_tasks: global_handlers/global_handlers.yml
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
become: true
roles:
- mastodon
@@ -183,7 +183,7 @@
- hosts: jitsimeet
tags: server,jitsimeet,webservers
handlers:
- import_tasks: global_handlers/global_handlers.yml
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
become: true
roles:
- jitsimeet
@@ -192,7 +192,7 @@
tags: server,omada_controller
become: true
handlers:
- import_tasks: global_handlers/global_handlers.yml
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
roles:
- omada-controller
@@ -200,10 +200,18 @@
tags: server,backup
become: true
handlers:
- import_tasks: global_handlers/global_handlers.yml
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
roles:
- backup
- hosts: reverseproxy
tags: server,reverseproxy
become: true
handlers:
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
roles:
- reverseproxy
# - hosts: proxyserver
# tags: server,proxyserver
# become: true