clean up docker host stuff

This commit is contained in:
Pim Kunis 2023-05-20 14:01:36 +02:00
parent 1d3f4110f4
commit b31a6ab73e
16 changed files with 3 additions and 63 deletions

View file

@ -3,6 +3,3 @@
name: cyberchef
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost

View file

@ -4,9 +4,6 @@
data: "{{ lookup('template', '{{ role_path }}/app.ini.j2') }}"
use_ssh_client: true
rolling_versions: true
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost
register: config
- name: Deploy Docker stack
@ -14,6 +11,3 @@
name: forgejo
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost

View file

@ -3,6 +3,3 @@
name: freshrss
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost

View file

@ -3,6 +3,3 @@
name: hedgedoc
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost

View file

@ -3,6 +3,3 @@
name: inbucket
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost

View file

@ -3,6 +3,3 @@
name: jitsi
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost

View file

@ -3,6 +3,3 @@
name: kms
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost

View file

@ -3,6 +3,3 @@
name: mastodon
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost

View file

@ -3,6 +3,3 @@
name: overleaf
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost

View file

@ -3,6 +3,3 @@
name: pihole
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost

View file

@ -1,23 +1,17 @@
- name: Create radicale config
docker_config:
name: radicale_config
data_src: "{{ role_path }}/radicale.conf"
data: "{{ lookup('file', '{{ role_path }}/radicale.conf') }}"
use_ssh_client: true
rolling_versions: true
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost
register: config
- name: Create radicale users
docker_config:
name: radicale_users
data_src: "{{ role_path }}/users"
data: "{{ lookup('file', '{{ role_path }}/users') }}"
use_ssh_client: true
rolling_versions: true
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost
register: users
- name: Deploy Docker stack
@ -25,6 +19,3 @@
name: radicale
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost

View file

@ -3,6 +3,3 @@
name: seafile
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost

View file

@ -3,6 +3,3 @@
name: shephard
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost

View file

@ -3,6 +3,3 @@
name: static
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost

View file

@ -3,6 +3,3 @@
name: swarm_dashboard
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost

View file

@ -6,12 +6,9 @@
- name: Create Docker config
docker_config:
name: traefik_services
data_src: "{{ role_path }}/services.yml"
data: "{{ lookup('file', '{{ role_path }}/services.yml') }}"
use_ssh_client: true
rolling_versions: true
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost
register: services
- name: Deploy Docker stack
@ -19,6 +16,3 @@
name: forgejo
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost