ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

commit 79f5c5f0c8ac905a0c23fee0a340170169ec88ea
parent 28b30cc6608cb80678904ede5a26bdae63dcdafb
Author: Leah Thein <leah@toaster.fritz.box>
Date: Thu, 3 Dec 2020 00:12:34 +0100

add new host lollo and new dynamic interface configuration
2 files changed, 63 insertions(+), 27 deletions(-)
M
inventory
|
4
++++
M
playbooks.yml
|
86
++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------
diff --git a/inventory b/inventory
@@ -7,3 +7,6 @@ taurus.ctu.cx
 
 [wanderduene]
 wanderduene.ctu.cx
+
+[lollo]
+lollo+
\ No newline at end of file
diff --git a/playbooks.yml b/playbooks.yml
@@ -26,23 +26,28 @@
 #    - synapse
 #    - grafana
 #    - frps
-    - backup 
+#    - backup 
   vars:
     network:
-      interface: eth0
       hostname: wanderduene
       domain: ctu.cx
       nameservers:
         - 1.1.1.1
         - 8.8.8.8
-      ipv4:
-        address: 46.38.253.139
-        gateway: 46.38.253.1
-        netmask: 255.255.255.0
-      ipv6:
-        address: 2a03:4000:1:45d::1
-        gateway: fe80::1
-        netmask: 64
+      awall:
+        wan: eth0
+      interfaces:
+        - name: lo
+          loopback: true
+        - name: eth0
+          ipv4:
+            address: 46.38.253.139
+            gateway: 46.38.253.1
+            netmask: 255.255.255.0
+          ipv6:
+            address: 2a03:4000:1:45d::1
+            gateway: fe80::1
+            netmask: 64
     bind:
       type: master
       slaves:

@@ -51,11 +56,8 @@
       domains:
         - ctu.cx
         - ctucx.de
-        - ctucx.network
         - thein.ovh
         - antifa.jetzt
-        - antifa.life
-        - antifa.email
         - oeffisear.ch
     acme_redirect_certs:
       wanderduene.ctu.cx:

@@ -205,28 +207,33 @@
   name: Install taurus
   roles:
 #    - common
-    - bind
+#    - bind
 #    - acme-redirect
 #    - nginx
 #    - syncthing
 #    - websites
-    - rest-server
+#    - rest-server
   vars:
     network:
-      interface: eth0
       hostname: taurus
       domain: ctu.cx
       nameservers:
         - 1.1.1.1
         - 8.8.8.8
-      ipv4:
-        address: 37.221.196.131
-        gateway: 37.221.196.1
-        netmask: 255.255.255.0
-      ipv6:
-        address: 2a03:4000:9:f8::1
-        gateway: fe80::1
-        netmask: 64
+      awall:
+        wan: eth0
+      interfaces:
+        - name: lo
+          loopback: true
+        - name: eth0
+          ipv4:
+            address: 37.221.196.131
+            gateway: 37.221.196.1
+            netmask: 255.255.255.0
+          ipv6:
+            address: 2a03:4000:9:f8::1
+            gateway: fe80::1
+            netmask: 64
     bind:
       type: slave
       masters:

@@ -234,11 +241,8 @@
       domains:
         - ctu.cx
         - ctucx.de
-        - ctucx.network
         - thein.ovh
         - antifa.jetzt
-        - antifa.life
-        - antifa.email
         - oeffisear.ch
     nginx:
       ssl_cert: "/var/lib/acme-redirect/live/taurus.ctu.cx/fullchain"

@@ -277,3 +281,30 @@
       ssl_cert: "/var/lib/acme-redirect/live/restic.ctu.cx/fullchain"
       ssl_privkey: "/var/lib/acme-redirect/live/restic.ctu.cx/privkey"
       passwd: "{{ lookup('community.general.passwordstore', 'server/taurus/rest-server.htpasswd returnall=true')}}"
+
+
+- hosts: lollo
+  name: Install lollo
+  roles:
+#    - common
+    - syncthing
+  vars:
+    network:
+      hostname: lollo
+      domain: ctu.cx
+      nameservers:
+        - 1.1.1.1
+        - 8.8.8.8
+      awall:
+        wan: eth0
+      interfaces:
+        - name: lo
+          loopback: true
+        - name: eth0
+          ipv4:
+            dhcp: true
+          ipv6:
+            stateless: true
+    syncthing:
+      disableReverseProxy: true
+      guiAddress: 0.0.0.0:8384+
\ No newline at end of file