~comcloudway/ansible-srht

aed755faa9545e3b862080fc03c918646a25938d — Jakob Meier 1 year, 13 days ago a32ed87
Prefer localhost over external domains
should speed up some requests
and make sure the server doesn't crash when it temporarilly loses
internet access
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
@@ 5,6 5,11 @@
      - 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