Add forgejo hosts

This commit is contained in:
Timo Makinen 2025-03-06 19:27:23 +00:00
parent c479b7fcea
commit 9a5f632ce4
4 changed files with 48 additions and 0 deletions

8
group_vars/forgejo.yml Normal file
View file

@ -0,0 +1,8 @@
---
datadisks:
- {size: 10, type: nvme}
firewall_in:
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
- {proto: tcp, port: 443, from: [172.20.20.0/22]}
- {proto: tcp, port: 9100, from: [172.20.20.0/22]}

View file

@ -0,0 +1,6 @@
---
vmhost: vmhost02.home.foo.sh
network_interfaces:
- device: eth0
vlan: 20
mac: 52:54:00:ac:dc:80

View file

@ -16,6 +16,11 @@ dnagw:
hosts: hosts:
dna-gw01.home.foo.sh: dna-gw01.home.foo.sh:
dna-gw02.home.foo.sh: dna-gw02.home.foo.sh:
forgejo:
hosts:
forgejo02.home.foo.sh:
vars:
forgejo_version: "10.0.1"
frigate: frigate:
hosts: hosts:
frigate02.home.foo.sh: frigate02.home.foo.sh:
@ -165,6 +170,7 @@ rocky9:
children: children:
adm: adm:
audiobooks: audiobooks:
forgejo:
frigate: frigate:
gitea: gitea:
homeassistant: homeassistant:

28
playbooks/forgejo.yml Normal file
View file

@ -0,0 +1,28 @@
---
- name: Deploy KVM virtual machines
ansible.builtin.import_playbook: include/deploy-kvm-guest.yml
vars:
myhosts: forgejo
- name: Configure instance
hosts: forgejo
user: root
gather_facts: true
vars_files:
- "{{ ansible_private }}/vars.yml"
pre_tasks:
- name: Mount /export
ansible.posix.mount:
name: /export
src: LABEL=/export
fstype: xfs
opts: noatime,noexec,nosuid,nodev
passno: "0"
dump: "0"
state: mounted
roles:
- base
- forgejo