From ea8804d31c420fa04f838a3bb5ca7c9a260bc375 Mon Sep 17 00:00:00 2001 From: Jesper Hess Nielsen Date: Sat, 2 Mar 2019 19:51:32 +0100 Subject: [PATCH] Add cryptohagen.dk website --- playbook.yml | 2 +- roles/docker/defaults/main.yml | 5 ++++- roles/docker/tasks/services/website.yml | 12 ------------ roles/docker/tasks/services/websites.yml | 23 +++++++++++++++++++++++ 4 files changed, 28 insertions(+), 14 deletions(-) delete mode 100644 roles/docker/tasks/services/website.yml create mode 100644 roles/docker/tasks/services/websites.yml diff --git a/playbook.yml b/playbook.yml index ea2c2780..7c82f5de 100644 --- a/playbook.yml +++ b/playbook.yml @@ -21,7 +21,7 @@ - codimd - netdata - docker_registry - - website + - websites smtp_host: postfix smtp_port: 587 diff --git a/roles/docker/defaults/main.yml b/roles/docker/defaults/main.yml index 7ad3094c..4a496395 100644 --- a/roles/docker/defaults/main.yml +++ b/roles/docker/defaults/main.yml @@ -42,5 +42,8 @@ docker_registry: username: "docker" password: "{{ docker_password }}" -website: +data_coop_website: domain: "{{ base_domain }}" + +cryptohagen_website: + domain: "cryptohagen.dk" diff --git a/roles/docker/tasks/services/website.yml b/roles/docker/tasks/services/website.yml deleted file mode 100644 index bb50a607..00000000 --- a/roles/docker/tasks/services/website.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- - -- name: setup data.coop website docker container - docker_container: - name: website - image: docker.data.coop/data-coop-website - networks: - - name: external_services - env: - VIRTUAL_HOST : "{{ website.domain }}" - LETSENCRYPT_HOST: "{{ website.domain }}" - LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}" diff --git a/roles/docker/tasks/services/websites.yml b/roles/docker/tasks/services/websites.yml new file mode 100644 index 00000000..2b956921 --- /dev/null +++ b/roles/docker/tasks/services/websites.yml @@ -0,0 +1,23 @@ +--- + +- name: setup data.coop website docker container + docker_container: + name: website + image: docker.data.coop/data-coop-website + networks: + - name: external_services + env: + VIRTUAL_HOST : "{{ data_coop_website.domain }}" + LETSENCRYPT_HOST: "{{ data_coop_website.domain }}" + LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}" + +- name: setup cryptohagen.dk website docker container + docker_container: + name: website + image: docker.data.coop/cryptohagen-website + networks: + - name: external_services + env: + VIRTUAL_HOST : "{{ cryptohagen_website.domain }}" + LETSENCRYPT_HOST: "{{ cryptohagen_website.domain }}" + LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"