From 1328b00dddc798b02c69175b9a75590cb4f11184 Mon Sep 17 00:00:00 2001 From: L3D Date: Wed, 23 Dec 2020 01:17:14 +0100 Subject: [PATCH] web site deployment ongoing --- .gitmodules | 9 +++++++++ host_vars/web01.l3d.space.yml | 28 ++++++++++++++++++++++++++++ hosts.ini | 2 +- roles/acmetool2 | 1 + roles/nginx2 | 1 + roles/webhost2 | 1 + site.yml | 7 +++++++ 7 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 host_vars/web01.l3d.space.yml create mode 160000 roles/acmetool2 create mode 160000 roles/nginx2 create mode 160000 roles/webhost2 diff --git a/.gitmodules b/.gitmodules index 30dc086..861b003 100644 --- a/.gitmodules +++ b/.gitmodules @@ -22,3 +22,12 @@ [submodule "files/ssh_public_keys"] path = files/ssh_public_keys url = https://gitea.see-base.de/toolbox/ssh-public-keys.git +[submodule "roles/nginx2"] + path = roles/nginx2 + url = git@git.ccczh.ch:ansible-roles/role-nginx_new2.git +[submodule "roles/acmetool2"] + path = roles/acmetool2 + url = git@git.ccczh.ch:ansible-roles/role-acmetool.git +[submodule "roles/webhost2"] + path = roles/webhost2 + url = git@git.ccczh.ch:ansible-roles/role-webhost.git diff --git a/host_vars/web01.l3d.space.yml b/host_vars/web01.l3d.space.yml new file mode 100644 index 0000000..791b058 --- /dev/null +++ b/host_vars/web01.l3d.space.yml @@ -0,0 +1,28 @@ +--- +users: + l3d: + - l3d@pinkie.l3d.yt + - l3d@mobile.l3d.yt + - l3d@backup.l3d.yt + - l3d@derpy.l3d.yt + - l3d@backup-rsa.l3d.yt + - l3d@business.wingcon.com + webwaffel: + - l3d@pinkie.l3d.yt + - l3d@mobile.l3d.yt + - l3d@backup.l3d.yt + - l3d@derpy.l3d.yt + - l3d@backup-rsa.l3d.yt + - l3d@business.wingcon.com + + +accounts: + - l3d + - webwaffel + +nginx_sites: + - name: 'c3woc.org' + webroot: + user: 'webwaffel' + +acme_notification_email: "acme_{{ ansible_hosts }}@l3d.yt" diff --git a/hosts.ini b/hosts.ini index ac1da39..8a09625 100644 --- a/hosts.ini +++ b/hosts.ini @@ -1,2 +1,2 @@ -[webserver] +[web] web01.l3d.space diff --git a/roles/acmetool2 b/roles/acmetool2 new file mode 160000 index 0000000..06f6215 --- /dev/null +++ b/roles/acmetool2 @@ -0,0 +1 @@ +Subproject commit 06f62154319969711f4025a12257868310fbd4b1 diff --git a/roles/nginx2 b/roles/nginx2 new file mode 160000 index 0000000..0b60a92 --- /dev/null +++ b/roles/nginx2 @@ -0,0 +1 @@ +Subproject commit 0b60a92826d0971fffed434ca228626766fe39f8 diff --git a/roles/webhost2 b/roles/webhost2 new file mode 160000 index 0000000..7a7a04e --- /dev/null +++ b/roles/webhost2 @@ -0,0 +1 @@ +Subproject commit 7a7a04e45d9c52be8ceec4ec48349de2fee71dd1 diff --git a/site.yml b/site.yml index 9c62b54..37cabdf 100644 --- a/site.yml +++ b/site.yml @@ -14,3 +14,10 @@ - { role: dotfiles, tags: [default,dotfiles]} - { role: ssh_auth, tags: [default,users]} - { role: sshd, tags: [default,users]} + +- name: deploy web config + hosts: web + roles: + - { role: acmetool2, tags: [web,acmetool]} + - { role: nginx2, tags: [web,nginx]} + - { role: webhost2, tags: [web,webhost]}