Pin gitea domain to private IP in /etc/hosts to avoid Cloudflare egress

This commit is contained in:
Ryan Moon
2026-03-31 18:54:51 -05:00
parent a81981df87
commit 8595eac107

View File

@@ -1,4 +1,11 @@
---
- name: Resolve Gitea domain to private IP (avoid Cloudflare for internal traffic)
lineinfile:
path: /etc/hosts
line: "{{ ansible_eth0.ipv4.address }} {{ gitea_domain }}"
regexp: "{{ gitea_domain }}"
state: present
- name: Create gitea-runner data directory
file:
path: "{{ gitea_runner_data_dir }}"