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 name: cyberchef
compose: compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}" - "{{ 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') }}" data: "{{ lookup('template', '{{ role_path }}/app.ini.j2') }}"
use_ssh_client: true use_ssh_client: true
rolling_versions: true rolling_versions: true
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost
register: config register: config
- name: Deploy Docker stack - name: Deploy Docker stack
@ -14,6 +11,3 @@
name: forgejo name: forgejo
compose: compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}" - "{{ 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 name: freshrss
compose: compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}" - "{{ 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 name: hedgedoc
compose: compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}" - "{{ 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 name: inbucket
compose: compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}" - "{{ 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 name: jitsi
compose: compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}" - "{{ 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 name: kms
compose: compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}" - "{{ 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 name: mastodon
compose: compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}" - "{{ 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 name: overleaf
compose: compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}" - "{{ 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 name: pihole
compose: compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}" - "{{ 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 - name: Create radicale config
docker_config: docker_config:
name: radicale_config name: radicale_config
data_src: "{{ role_path }}/radicale.conf" data: "{{ lookup('file', '{{ role_path }}/radicale.conf') }}"
use_ssh_client: true use_ssh_client: true
rolling_versions: true rolling_versions: true
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost
register: config register: config
- name: Create radicale users - name: Create radicale users
docker_config: docker_config:
name: radicale_users name: radicale_users
data_src: "{{ role_path }}/users" data: "{{ lookup('file', '{{ role_path }}/users') }}"
use_ssh_client: true use_ssh_client: true
rolling_versions: true rolling_versions: true
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost
register: users register: users
- name: Deploy Docker stack - name: Deploy Docker stack
@ -25,6 +19,3 @@
name: radicale name: radicale
compose: compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}" - "{{ 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 name: seafile
compose: compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}" - "{{ 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 name: shephard
compose: compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}" - "{{ 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 name: static
compose: compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}" - "{{ 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 name: swarm_dashboard
compose: compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}" - "{{ 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 - name: Create Docker config
docker_config: docker_config:
name: traefik_services name: traefik_services
data_src: "{{ role_path }}/services.yml" data: "{{ lookup('file', '{{ role_path }}/services.yml') }}"
use_ssh_client: true use_ssh_client: true
rolling_versions: true rolling_versions: true
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost
register: services register: services
- name: Deploy Docker stack - name: Deploy Docker stack
@ -19,6 +16,3 @@
name: forgejo name: forgejo
compose: compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}" - "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost