Pin gitea domain to private IP in /etc/hosts to avoid Cloudflare egress
This commit is contained in:
@@ -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
|
- name: Create gitea-runner data directory
|
||||||
file:
|
file:
|
||||||
path: "{{ gitea_runner_data_dir }}"
|
path: "{{ gitea_runner_data_dir }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user