Add master playbook to install everything in order
This commit is contained in:
parent
6f78bac499
commit
023ff35ac6
5 changed files with 32 additions and 7 deletions
22
playbooks/all.yml
Normal file
22
playbooks/all.yml
Normal 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
|
|
@ -3,11 +3,6 @@
|
|||
- name: Setup Icinga2 common things
|
||||
gather_facts: false
|
||||
hosts: all
|
||||
roles:
|
||||
- role: common_handlers
|
||||
tags: always
|
||||
- role: setup_nftables
|
||||
tags: nftables
|
||||
tasks:
|
||||
- name: Install required packages
|
||||
tags: install
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
tags: always
|
||||
- role: common
|
||||
tags: common
|
||||
- role: postfix
|
||||
tags: postfix
|
||||
- role: forgejo
|
||||
tags: forgejo
|
||||
- role: deux_puissance_x
|
||||
tags: deux_puissance_x
|
||||
- role: tunuifranken
|
||||
tags: tunuifranken
|
||||
- role: postfix
|
||||
tags: postfix
|
||||
|
|
4
roles/icinga2_agent/meta/main.yml
Normal file
4
roles/icinga2_agent/meta/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
|
||||
dependencies:
|
||||
- role: setup_nftables
|
4
roles/icinga2_master/meta/main.yml
Normal file
4
roles/icinga2_master/meta/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
|
||||
dependencies:
|
||||
- role: setup_nftables
|
Loading…
Reference in a new issue