Prefer localhost over external domains should speed up some requests and make sure the server doesn't crash when it temporarilly loses internet access
4 files changed, 20 insertions(+), 0 deletions(-) M roles/builds.sr.ht/tasks/main.yml M roles/git.sr.ht/tasks/main.yml M roles/hub.sr.ht/tasks/main.yml M roles/meta.sr.ht/tasks/main.yml
M roles/builds.sr.ht/tasks/main.yml => roles/builds.sr.ht/tasks/main.yml +5 -0
@@ 7,6 7,11 @@ - builds.sr.ht-worker 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
M roles/git.sr.ht/tasks/main.yml => roles/git.sr.ht/tasks/main.yml +5 -0
@@ 5,6 5,11 @@ - git.sr.ht 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
M roles/hub.sr.ht/tasks/main.yml => roles/hub.sr.ht/tasks/main.yml +5 -0
@@ 5,6 5,11 @@ - 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
M roles/meta.sr.ht/tasks/main.yml => roles/meta.sr.ht/tasks/main.yml +5 -0