Replace 00-test-hosts play

This commit is contained in:
Wojciech Kozlowski 2022-12-04 15:36:03 +01:00
parent c2d98fe242
commit 9843677655
5 changed files with 44 additions and 12 deletions

View File

@ -1,5 +1,2 @@
[defaults]
inventory = ./hosts
[privilege_escalation]
become = True

View File

@ -1,9 +0,0 @@
---
- name: Configure hosts
hosts: asgard
tasks:
- import_tasks: tasks/hosts/sshd.yml
- import_tasks: tasks/hosts/firewall.yml
- import_tasks: tasks/hosts/utils.yml
- import_tasks: tasks/hosts/root-shell.yml

View File

@ -4,6 +4,7 @@
roles:
- role: "system_mail"
tags: "role:system_mail"
when: the_nine_worlds_production | bool
- role: "system_base"
tags: "role:system_base"
vars:

View File

@ -1,3 +1,6 @@
[all:vars]
the_nine_worlds_production=true
# --------------------------------------------------------------------------------------------------
# Functionality.
# --------------------------------------------------------------------------------------------------

40
testing Normal file
View File

@ -0,0 +1,40 @@
heimdall ansible_host=heimdall-virt
valkyrie ansible_host=valkyrie-virt
yggdrasil ansible_host=yggdrasil-virt
[all:vars]
the_nine_worlds_production=false
# --------------------------------------------------------------------------------------------------
# Functionality.
# --------------------------------------------------------------------------------------------------
# VPN entry-points.
[bifrost]
heimdall
# Service running hosts.
[asgard]
valkyrie
yggdrasil
# --------------------------------------------------------------------------------------------------
# Network.
# --------------------------------------------------------------------------------------------------
# Hosts physically located within the home LAN.
[home]
heimdall
yggdrasil
# Hosts remote to the home LAN.
[remote]
valkyrie
# --------------------------------------------------------------------------------------------------
# Special.
# --------------------------------------------------------------------------------------------------
# Hosts running with ZFS.
[zfs]
yggdrasil