From 1bb3e7e21ab1582c5cac9342bc7eec3f95a95178 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Wed, 31 Dec 2025 15:11:08 +0100 Subject: [PATCH] remove unused ansible resources --- ansible/group_vars/CD.yml | 6 ------ ansible/group_vars/consul-server.yml | 5 ----- ansible/group_vars/datacenter.yml | 9 --------- ansible/group_vars/macos.yml | 6 ------ ansible/group_vars/minecraft.yml | 6 ------ ansible/group_vars/proxmox-vm.yml | 2 -- ansible/group_vars/vinlottis-vm.yml | 2 -- ansible/plays/bind9.yml | 16 ---------------- ansible/plays/consul.yml | 5 ----- ansible/plays/gitea.yml | 5 ----- ansible/plays/immich.yml | 7 ------- ansible/plays/minecraft.yml | 7 ------- ansible/plays/prox-node.yml | 19 ------------------- ansible/plays/syncthing.yml | 5 ----- ansible/plays/traefik.yml | 6 ------ ansible/plays/vault.yml | 7 ------- ansible/plays/vinlottis.yml | 5 ----- ansible/plays/wireguard.yml | 6 ------ ansible/plays/xwiki.yml | 21 --------------------- 19 files changed, 145 deletions(-) delete mode 100644 ansible/group_vars/CD.yml delete mode 100644 ansible/group_vars/consul-server.yml delete mode 100644 ansible/group_vars/macos.yml delete mode 100644 ansible/group_vars/minecraft.yml delete mode 100644 ansible/group_vars/proxmox-vm.yml delete mode 100644 ansible/group_vars/vinlottis-vm.yml delete mode 100644 ansible/plays/bind9.yml delete mode 100644 ansible/plays/consul.yml delete mode 100644 ansible/plays/gitea.yml delete mode 100644 ansible/plays/immich.yml delete mode 100644 ansible/plays/minecraft.yml delete mode 100644 ansible/plays/prox-node.yml delete mode 100644 ansible/plays/syncthing.yml delete mode 100644 ansible/plays/traefik.yml delete mode 100644 ansible/plays/vault.yml delete mode 100644 ansible/plays/vinlottis.yml delete mode 100644 ansible/plays/wireguard.yml delete mode 100644 ansible/plays/xwiki.yml diff --git a/ansible/group_vars/CD.yml b/ansible/group_vars/CD.yml deleted file mode 100644 index f768389..0000000 --- a/ansible/group_vars/CD.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -# CI specific vars - -users: - - root -ssh_keys_users: ['drone'] diff --git a/ansible/group_vars/consul-server.yml b/ansible/group_vars/consul-server.yml deleted file mode 100644 index 415e5a2..0000000 --- a/ansible/group_vars/consul-server.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Consul server specific -consul_is_server: true -consul_is_ui: true -consul_bootstrap_expect: 1 diff --git a/ansible/group_vars/datacenter.yml b/ansible/group_vars/datacenter.yml index abe8648..6c861a5 100644 --- a/ansible/group_vars/datacenter.yml +++ b/ansible/group_vars/datacenter.yml @@ -6,12 +6,3 @@ dns_nameservers: - "2606:4700:4700::1001" default_user: "kevin" - -# Consul cluster -consul_datacenter: "schleppe" -consul_servers: - - "10.0.0.140" - - "10.0.0.141" - - "10.0.0.142" -consul_install_dnsmasq: false - diff --git a/ansible/group_vars/macos.yml b/ansible/group_vars/macos.yml deleted file mode 100644 index eeffc19..0000000 --- a/ansible/group_vars/macos.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -# python path -ansible_python_interpreter: /usr/local/bin/python3 - -users: - - kevin \ No newline at end of file diff --git a/ansible/group_vars/minecraft.yml b/ansible/group_vars/minecraft.yml deleted file mode 100644 index d680896..0000000 --- a/ansible/group_vars/minecraft.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -apt_packages: - - git - - build-essential - - openjdk-21-jdk -minecraft_version: 1.20.6 diff --git a/ansible/group_vars/proxmox-vm.yml b/ansible/group_vars/proxmox-vm.yml deleted file mode 100644 index bc435d3..0000000 --- a/ansible/group_vars/proxmox-vm.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -proxmox_install_qemu_guest_agent: true diff --git a/ansible/group_vars/vinlottis-vm.yml b/ansible/group_vars/vinlottis-vm.yml deleted file mode 100644 index b2d5b9b..0000000 --- a/ansible/group_vars/vinlottis-vm.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -ssh_keys_users: ['kevin', 'kasper'] diff --git a/ansible/plays/bind9.yml b/ansible/plays/bind9.yml deleted file mode 100644 index e29d081..0000000 --- a/ansible/plays/bind9.yml +++ /dev/null @@ -1,16 +0,0 @@ ---- -- name: Check if vault is reachable for dynamic config - hosts: all - connection: local - gather_facts: false - pre_tasks: - - name: Check for vault env variables - set_fact: - has_vault: "{{ lookup('env', 'VAULT_ADDR') and lookup('env', 'VAULT_TOKEN') and lookup('env', 'HAS_VAULT') != 'FALSE' }}" - roles: - - { role: roles/vault-config, when: has_vault } - -- name: Install all bind9 service and transfer zone files - hosts: all - roles: - - role: roles/bind9 diff --git a/ansible/plays/consul.yml b/ansible/plays/consul.yml deleted file mode 100644 index c7c4e25..0000000 --- a/ansible/plays/consul.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- name: Consul - hosts: all - roles: - - role: roles/consul diff --git a/ansible/plays/gitea.yml b/ansible/plays/gitea.yml deleted file mode 100644 index a98dafb..0000000 --- a/ansible/plays/gitea.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- name: Provision git server with gitea - hosts: all - roles: - - role: roles/gitea diff --git a/ansible/plays/immich.yml b/ansible/plays/immich.yml deleted file mode 100644 index ea6824e..0000000 --- a/ansible/plays/immich.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -- name: Install and setup immich backup service - hosts: all - roles: - # - role: roles/docker - - role: roles/immich - diff --git a/ansible/plays/minecraft.yml b/ansible/plays/minecraft.yml deleted file mode 100644 index 73db7ed..0000000 --- a/ansible/plays/minecraft.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -- name: Setup minecraft requirements w/ latest server jar - hosts: all - roles: - - role: roles/apt - - role: roles/minecraft - diff --git a/ansible/plays/prox-node.yml b/ansible/plays/prox-node.yml deleted file mode 100644 index 05abc8c..0000000 --- a/ansible/plays/prox-node.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -- name: Check if vault is reachable for dynamic config - hosts: all - connection: local - gather_facts: false - pre_tasks: - - name: Check for vault env variables - set_fact: - has_vault: "{{ lookup('env', 'VAULT_ADDR') and lookup('env', 'VAULT_TOKEN') }}" - TELEGRAF_TOKEN: "{{ lookup('env', 'TELEGRAF_TOKEN') }}" - roles: - - { role: roles/vault-config, when: has_vault } - -- name: Basic setup for proxmox vm clients - hosts: proxmox_nodes - roles: - # - role: roles/prox-telegraf-metrics - - role: roles/prox-templates - diff --git a/ansible/plays/syncthing.yml b/ansible/plays/syncthing.yml deleted file mode 100644 index 1614fa3..0000000 --- a/ansible/plays/syncthing.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- name: Install & configure syncthing - hosts: all - roles: - - role: roles/syncthing diff --git a/ansible/plays/traefik.yml b/ansible/plays/traefik.yml deleted file mode 100644 index 6159a0a..0000000 --- a/ansible/plays/traefik.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -- name: Install traefik binary & config - hosts: all - roles: - - role: roles/traefik - diff --git a/ansible/plays/vault.yml b/ansible/plays/vault.yml deleted file mode 100644 index f954e77..0000000 --- a/ansible/plays/vault.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -- name: Install all required packages, built and start service for vault - hosts: all - roles: - - role: roles/vault - - role: roles/firewall - enable_vault_ufw_port: true \ No newline at end of file diff --git a/ansible/plays/vinlottis.yml b/ansible/plays/vinlottis.yml deleted file mode 100644 index 53ad0c2..0000000 --- a/ansible/plays/vinlottis.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- name: Install all required packages, built and start service for vinlottis - hosts: all - roles: - - role: roles/vinlottis diff --git a/ansible/plays/wireguard.yml b/ansible/plays/wireguard.yml deleted file mode 100644 index a2556f2..0000000 --- a/ansible/plays/wireguard.yml +++ /dev/null @@ -1,6 +0,0 @@ -- name: Setup wireguard - hosts: all - roles: - - role: roles/docker - - role: roles/firewall - - role: roles/wireguard diff --git a/ansible/plays/xwiki.yml b/ansible/plays/xwiki.yml deleted file mode 100644 index 9596ca1..0000000 --- a/ansible/plays/xwiki.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -- name: Check if vault is reachable for dynamic config - hosts: all - connection: local - gather_facts: false - pre_tasks: - - name: Check for vault env variables - set_fact: - has_vault: "{{ lookup('env', 'VAULT_ADDR') and lookup('env', 'VAULT_TOKEN') }}" - XWIKI_DB_USER: "{{ lookup('env', 'XWIKI_DB_USER') }}" - XWIKI_DB_PASSWORD: "{{ lookup('env', 'XWIKI_DB_PASSWORD') }}" - XWIKI_DB_ROOT_PASSWORD: "{{ lookup('env', 'XWIKI_DB_ROOT_PASSWORD') }}" - roles: - - { role: roles/vault-config, when: has_vault } - -- name: Setup xwiki working directory and move docker-compose file - hosts: all - roles: - - role: roles/docker - - role: roles/firewall - - role: roles/xwiki