Add master playbook to install everything in order

This commit is contained in:
Tunui Franken 2025-01-31 19:04:44 +01:00
parent 6f78bac499
commit 023ff35ac6
5 changed files with 32 additions and 7 deletions

22
playbooks/all.yml Normal file
View file

@ -0,0 +1,22 @@
---
# Set up everything
# Usage: ansible-playbook playbooks/all.yml -l (testservers|prodservers) [-e forgejo_dump_path=/path/to/forgejo/dump]
- name: Set up common things
gather_facts: true
hosts: all
roles:
- role: common_handlers
tags: always
- role: common
tags: common
- name: Setup Icinga2
ansible.builtin.import_playbook: playbooks/icinga2.yml
- name: Set up lime2 server
ansible.builtin.import_playbook: playbooks/lime2.yml
- name: Set up mail server
ansible.builtin.import_playbook: playbooks/mailserver.yml

View file

@ -3,11 +3,6 @@
- name: Setup Icinga2 common things - name: Setup Icinga2 common things
gather_facts: false gather_facts: false
hosts: all hosts: all
roles:
- role: common_handlers
tags: always
- role: setup_nftables
tags: nftables
tasks: tasks:
- name: Install required packages - name: Install required packages
tags: install tags: install

View file

@ -10,11 +10,11 @@
tags: always tags: always
- role: common - role: common
tags: common tags: common
- role: postfix
tags: postfix
- role: forgejo - role: forgejo
tags: forgejo tags: forgejo
- role: deux_puissance_x - role: deux_puissance_x
tags: deux_puissance_x tags: deux_puissance_x
- role: tunuifranken - role: tunuifranken
tags: tunuifranken tags: tunuifranken
- role: postfix
tags: postfix

View file

@ -0,0 +1,4 @@
---
dependencies:
- role: setup_nftables

View file

@ -0,0 +1,4 @@
---
dependencies:
- role: setup_nftables