From 6aa60670c0ac44b63c514a706c45f8415b0fa0ae Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Mon, 21 Aug 2023 20:45:49 +0200 Subject: [PATCH] Added helm charts repo as frontend and fixed apparent issue of Ansible with more than one SSH connection --- ansible/inventories/host_vars/repo/public.yaml | 3 +++ .../frontend => host_vars/wahlrecht-frontend}/public.yaml | 0 ansible/inventories/production | 3 ++- ansible/setup.yaml | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 ansible/inventories/host_vars/repo/public.yaml rename ansible/inventories/{group_vars/frontend => host_vars/wahlrecht-frontend}/public.yaml (100%) diff --git a/ansible/inventories/host_vars/repo/public.yaml b/ansible/inventories/host_vars/repo/public.yaml new file mode 100644 index 0000000..cdcea2c --- /dev/null +++ b/ansible/inventories/host_vars/repo/public.yaml @@ -0,0 +1,3 @@ +--- +ssh_user: wahlback +frontend_domain: repo.2martens.de diff --git a/ansible/inventories/group_vars/frontend/public.yaml b/ansible/inventories/host_vars/wahlrecht-frontend/public.yaml similarity index 100% rename from ansible/inventories/group_vars/frontend/public.yaml rename to ansible/inventories/host_vars/wahlrecht-frontend/public.yaml diff --git a/ansible/inventories/production b/ansible/inventories/production index 469890d..36bd655 100644 --- a/ansible/inventories/production +++ b/ansible/inventories/production @@ -9,7 +9,8 @@ devops ansible_host=49.12.69.146 ansible_python_interpreter=/usr/bin/python3 gitea ansible_host=giteajim.uber.space ansible_python_interpreter=/usr/bin/python [frontend] -wahlrecht-frontend ansible_host=wahlfron.uber.space ansible_python_interpreter=/usr/bin/python +wahlrecht-frontend ansible_host=gienah.uberspace.de ansible_python_interpreter=/usr/bin/python +repo ansible_host=shaula.uberspace.de ansible_python_interpreter=/usr/bin/python [applications] api-server ansible_host=49.13.77.70 ansible_python_interpreter=/usr/bin/python3 diff --git a/ansible/setup.yaml b/ansible/setup.yaml index 95139fe..e963a9e 100644 --- a/ansible/setup.yaml +++ b/ansible/setup.yaml @@ -9,6 +9,7 @@ hosts: frontend gather_facts: false remote_user: "{{ ssh_user }}" + serial: 1 roles: - frontend - name: Set up devops server