dd gitea hosts
This commit is contained in:
parent
cc02aae481
commit
5274ca0ba7
4 changed files with 49 additions and 0 deletions
8
group_vars/gitea.yml
Normal file
8
group_vars/gitea.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
datadisks:
|
||||||
|
- {size: 10, type: hdd}
|
||||||
|
|
||||||
|
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: 4949, from: [172.20.20.0/22]}
|
6
host_vars/gitea02.home.foo.sh.yml
Normal file
6
host_vars/gitea02.home.foo.sh.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
vmhost: vmhost02.home.foo.sh
|
||||||
|
network_interfaces:
|
||||||
|
- device: eth0
|
||||||
|
vlan: 20
|
||||||
|
mac: 52:54:00:ac:dc:78
|
|
@ -20,6 +20,12 @@ fsolgw:
|
||||||
git:
|
git:
|
||||||
hosts:
|
hosts:
|
||||||
git02.home.foo.sh:
|
git02.home.foo.sh:
|
||||||
|
gitea:
|
||||||
|
hosts:
|
||||||
|
gitea02.home.foo.sh:
|
||||||
|
vars:
|
||||||
|
gitea_version: "1.18.1"
|
||||||
|
gitea_checksum: "sha1:0e117034647fb4a1949a129132de0535c6a7140f"
|
||||||
homeassistant:
|
homeassistant:
|
||||||
hosts:
|
hosts:
|
||||||
homeassistant01.home.foo.sh:
|
homeassistant01.home.foo.sh:
|
||||||
|
@ -140,6 +146,7 @@ rocky9:
|
||||||
children:
|
children:
|
||||||
adm:
|
adm:
|
||||||
git:
|
git:
|
||||||
|
gitea:
|
||||||
influxdb:
|
influxdb:
|
||||||
ldap:
|
ldap:
|
||||||
mirror:
|
mirror:
|
||||||
|
|
28
playbooks/gitea.yml
Normal file
28
playbooks/gitea.yml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
---
|
||||||
|
- name: Deploy KVM virtual machines
|
||||||
|
ansible.builtin.import_playbook: include/deploy-kvm-guest.yml
|
||||||
|
vars:
|
||||||
|
myhosts: gitea
|
||||||
|
|
||||||
|
- name: Configure instance
|
||||||
|
hosts: gitea
|
||||||
|
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
|
||||||
|
- gitea
|
Loading…
Add table
Reference in a new issue