added tasks for a bastion host

This commit is contained in:
2025-10-01 14:22:25 +02:00
parent 54fc2ad535
commit 19e616845e
13 changed files with 299 additions and 11 deletions

View File

@@ -42,18 +42,18 @@
portage:
sync: yes
when: ansible_distribution == 'Gentoo'
ignore_errors: True
- hosts: all:!database
pre_tasks:
- name: pre-run | upgrade system (debian, ubuntu, etc.)
apt: upgrade=dist
#changed_when: false
notify: update aide database
when: ansible_distribution in ["Debian", "Ubuntu", "Linux Mint"]
- name: pre-run | upgrade system (arch)
pacman: upgrade=true
notify: update aide database
when: ansible_distribution == 'Archlinux'
ignore_errors: True
# run roles
- hosts: all
@@ -80,11 +80,11 @@
roles:
- nameserver
- hosts: webservers
tags: server,webservers
- hosts: webserver
tags: server,webserver
become: true
roles:
- webservers
- webserver
- hosts: mailserver
tags: server,mailserver