From 739f58b2c086486fc97e4d5d220c6d1c146f0846 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Sat, 4 Nov 2023 14:15:22 +0100 Subject: [PATCH] Removed /etc/hosts modifications as this broke the internal communitcation when using https --- roles/builds.sr.ht/tasks/main.yml | 5 ----- roles/builds.sr.ht/tasks/worker.yml | 5 ----- roles/git.sr.ht/tasks/main.yml | 5 ----- roles/hub.sr.ht/tasks/main.yml | 5 ----- roles/meta.sr.ht/tasks/main.yml | 5 ----- 5 files changed, 25 deletions(-) diff --git a/roles/builds.sr.ht/tasks/main.yml b/roles/builds.sr.ht/tasks/main.yml index 836b7e4..0c434ec 100644 --- a/roles/builds.sr.ht/tasks/main.yml +++ b/roles/builds.sr.ht/tasks/main.yml @@ -5,11 +5,6 @@ - builds.sr.ht state: latest -- name: Setup /etc/hosts localhost redirect - ansible.builtin.lineinfile: - path: /etc/hosts - line: "127.0.0.1 builds.{{ srht_domain }}" - - name: Setup Database ansible.builtin.import_tasks: db.yml diff --git a/roles/builds.sr.ht/tasks/worker.yml b/roles/builds.sr.ht/tasks/worker.yml index 1bb5849..2f4b766 100644 --- a/roles/builds.sr.ht/tasks/worker.yml +++ b/roles/builds.sr.ht/tasks/worker.yml @@ -87,8 +87,3 @@ state: restarted enabled: true when: nginxconf.changed - -- name: Setup /etc/hosts localhost redirect for runner - ansible.builtin.lineinfile: - path: /etc/hosts - line: "127.0.0.1 runner.{{ srht_domain }}" diff --git a/roles/git.sr.ht/tasks/main.yml b/roles/git.sr.ht/tasks/main.yml index a424402..2964d02 100644 --- a/roles/git.sr.ht/tasks/main.yml +++ b/roles/git.sr.ht/tasks/main.yml @@ -8,11 +8,6 @@ - fcgiwrap state: latest -- name: Setup /etc/hosts localhost redirect - ansible.builtin.lineinfile: - path: /etc/hosts - line: "127.0.0.1 git.{{ srht_domain }}" - - name: Setup Database ansible.builtin.import_tasks: db.yml diff --git a/roles/hub.sr.ht/tasks/main.yml b/roles/hub.sr.ht/tasks/main.yml index a3ae7fb..3ac1dd4 100644 --- a/roles/hub.sr.ht/tasks/main.yml +++ b/roles/hub.sr.ht/tasks/main.yml @@ -5,11 +5,6 @@ - hub.sr.ht state: latest -- name: Setup /etc/hosts localhost redirect - ansible.builtin.lineinfile: - path: /etc/hosts - line: "127.0.0.1 hub.{{ srht_domain }} {{ srht_domain }}" - - name: Setup Database ansible.builtin.import_tasks: db.yml diff --git a/roles/meta.sr.ht/tasks/main.yml b/roles/meta.sr.ht/tasks/main.yml index 0236e25..b2ab30a 100644 --- a/roles/meta.sr.ht/tasks/main.yml +++ b/roles/meta.sr.ht/tasks/main.yml @@ -5,11 +5,6 @@ - meta.sr.ht state: latest -- name: Setup /etc/hosts localhost redirect - ansible.builtin.lineinfile: - path: /etc/hosts - line: "127.0.0.1 meta.{{ srht_domain }}" - - name: Setup Database ansible.builtin.import_tasks: db.yml -- 2.38.5