Add basic ansible stuff for management

acme-dns is fully handled by ansible already. All services should be
created by ansible in the end.
This commit is contained in:
Tobias Reisinger 2023-06-13 17:59:15 +02:00
parent 607ad23697
commit 7ff7dfe807
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
16 changed files with 162 additions and 3 deletions
_ansible/inventory

View file

@ -0,0 +1,14 @@
compose_default_file:
services:
app:
image: "{{ compose.image }}"
restart: always
labels:
com.centurylinklabs.watchtower.enable: "{{ compose.watchtower | default(false) }}"
networks:
apps:
aliases:
- "{{ service.name }}"
networks:
apps:
external: true

View file

@ -0,0 +1,8 @@
admin_email: tobias@msrg.cc
postgres:
host: db.serguzim.me
port: 5432
services_path: /opt/services/
caddy_config_path: "{{ (services_path, 'caddy', 'config', 'conf.d') | path_join }}"

View file

@ -0,0 +1 @@
services_path: /opt/services/

View file

@ -0,0 +1,6 @@
all:
hosts:
local-dev:
ansible_connection: local
node002:
ansible_connection: local