Set up variables and inventory

This commit is contained in:
Alex 2020-04-09 18:55:28 +02:00
parent bfaef031ba
commit 9c01e11188
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
11 changed files with 68 additions and 13 deletions

View File

@ -1,4 +1,17 @@
---
- hosts: all
vars_prompt:
- name: packages
prompt: "Install packages?"
private: no
default: false
- name: user
prompt: "Set up users?"
private: no
default: false
- name: iptables
prompt: "Set up firewall?"
private: no
default: true
roles:
- common

View File

@ -1,4 +1,6 @@
---
- hosts: database
vars_files:
- '{{ role_path }}/vault/main.yml'
roles:
- database
- database

View File

@ -1,4 +1,9 @@
---
- hosts: dns
vars_prompt:
- name: unbound
prompt: "Install unbound"
private: no
default: false
roles:
- dns

View File

@ -1,4 +1,8 @@
---
- hosts: monitoring
vars_files:
- '{{ role_path }}/vars/database.yml'
- '{{ role_path }}/vars/domains.yml'
- '{{ role_path }}/vault/keys.yml'
roles:
- monitoring
- monitoring

View File

@ -1,9 +1,27 @@
[web]
78.46.164.141
78.46.197.89
n0
n1
n2
n3
n4
[dns]
116.203.189.84
[web]
n0
n2
n4
[database]
78.46.197.89
n4
[monitoring]
n0
n1
n2
n3
n4
[dns]
n0
n1
n2
n3
n4

@ -1 +1 @@
Subproject commit a01d7916e104c7fd86ffb80e490700b04fce8e77
Subproject commit 169bd35d83682d8c20b382e84f4c5777defee6a6

@ -1 +1 @@
Subproject commit 301653ec5f7f38ba3f12591291398a31afaa38be
Subproject commit ca6968c59e4ae6c5e807d68c8a9eea6bdf60eb69

@ -1 +1 @@
Subproject commit a297501524141d31d142ad09099006dafaadfe3b
Subproject commit dec156e069a4f11473b6ee30ad7a651bb8d10875

@ -1 +1 @@
Subproject commit fef66f3389adf275f336351f97d8ce28cabfa3b7
Subproject commit 26e73fd2faec21e37cd7ab3781b0393277afdbd2

@ -1 +1 @@
Subproject commit 8c73d5a6a7080862bf96ce50fbac32e9dbbc7786
Subproject commit 921de97f863e45bc2549135eb893a1002cbc3946

13
web.yml
View File

@ -1,4 +1,17 @@
---
- hosts: web
vars_prompt:
- name: frontend
prompt: "Setup frontend"
private: no
default: false
- name: cert
prompt: "Copy certificate (requires vault pass)"
private: no
default: false
- name: firewall
prompt: "Setup firewall"
private: no
default: true
roles:
- web