aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host_vars/ams-dcontroller-01.yml3
-rw-r--r--host_vars/local-hvisor-01.yml34
-rw-r--r--inventory.ini2
-rw-r--r--site.network.yml2
-rw-r--r--site.services.yml9
-rw-r--r--site.system.yml6
6 files changed, 50 insertions, 6 deletions
diff --git a/host_vars/ams-dcontroller-01.yml b/host_vars/ams-dcontroller-01.yml
index 57d6170..4e69ddd 100644
--- a/host_vars/ams-dcontroller-01.yml
+++ b/host_vars/ams-dcontroller-01.yml
@@ -16,9 +16,6 @@ cgit__css_url: "https://{{ __domain_name }}/styles/cgit.css"
cgit__description: development hub
cgit__readme_url: https://{{ __domain_name }}"
-nextcloud__listen_port: 8003
-nextcloud__domain_name: cloud.rgoncalves.se
-
__ip:
external: 46.23.91.150
internal: 10.10.0.1
diff --git a/host_vars/local-hvisor-01.yml b/host_vars/local-hvisor-01.yml
new file mode 100644
index 0000000..49ab6a7
--- /dev/null
+++ b/host_vars/local-hvisor-01.yml
@@ -0,0 +1,34 @@
+---
+
+ansible_host: 192.168.1.128
+
+sshd__listen_port: "{{ ansible_port }}"
+
+nextcloud__listen_port: 8003
+nextcloud__domain_name: cloud.rgoncalves.se
+
+__ip:
+ external: 192.168.1.128
+ internal: 10.10.0.128
+
+__services:
+ - name: ssh
+ protocol: tcp
+ port: "{{ ansible_port }}"
+
+ - name: wireguard
+ protocol: udp
+ port: 53
+
+ - name: http
+ protocol: tcp
+ port: 80
+
+ - name: https
+ protocol: tcp
+ port: 443
+
+ - name: nextcloud
+ domain: "{{ nextcloud__domain_name }}"
+ protocol: tcp
+ port: "{{ nextcloud__listen_port }}"
diff --git a/inventory.ini b/inventory.ini
index c396018..f86b23e 100644
--- a/inventory.ini
+++ b/inventory.ini
@@ -1,11 +1,13 @@
[all]
ams-dcontroller-01
localhost
+local-hvisor-01
wstation-think-01
wstation-xps-01
[servers]
ams-dcontroller-01
+local-hvisor-01
[workstations]
wstation-think-01
diff --git a/site.network.yml b/site.network.yml
index e325da5..f21a1e2 100644
--- a/site.network.yml
+++ b/site.network.yml
@@ -1,6 +1,6 @@
---
-- hosts: ams-dcontroller-01
+- hosts: servers
roles:
- role: sshd
- role: pf
diff --git a/site.services.yml b/site.services.yml
index bf06a47..d410f2d 100644
--- a/site.services.yml
+++ b/site.services.yml
@@ -3,6 +3,13 @@
- hosts: ams-dcontroller-01
roles:
- role: cgit
- - role: httpd
- role: relayd
- role: acme
+
+- hosts: local-hvisor-01
+ roles:
+ - role: nextcloud
+
+- hosts: servers
+ roles:
+ - role: httpd
diff --git a/site.system.yml b/site.system.yml
index 37b4d20..721d244 100644
--- a/site.system.yml
+++ b/site.system.yml
@@ -1,8 +1,12 @@
---
-- hosts: ams-dcontroller-01
+- hosts: servers
+ gather_facts: false
roles:
- role: prerequisites
+
+- hosts: servers
+ roles:
- role: hostname
- role: unix_users
- role: toolbox
remember that computers suck.