Added git server to inventory
This commit is contained in:
parent
35c318797f
commit
9282e14118
30
ansible/assets/git/compose.yml.j2
Normal file
30
ansible/assets/git/compose.yml.j2
Normal file
@ -0,0 +1,30 @@
|
||||
version: "3"
|
||||
|
||||
networks:
|
||||
gitea:
|
||||
external: false
|
||||
|
||||
volumes:
|
||||
gitea:
|
||||
driver: local
|
||||
|
||||
services:
|
||||
server:
|
||||
image: gitea/gitea:1.22.3
|
||||
container_name: gitea
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- GITEA__database__DB_TYPE=postgres
|
||||
- GITEA__database__HOST=postgres:5432
|
||||
- GITEA__database__NAME={{ gitea_db_name }}
|
||||
- GITEA__database__USER={{ gitea_db_user }}
|
||||
- GITEA__database__PASSWD={{ vault_gitea_db_password }}
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "222:22"
|
||||
4
ansible/inventory/host_vars/git/vars
Normal file
4
ansible/inventory/host_vars/git/vars
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
gitea_db_name: gitea
|
||||
gitea_db_user: gitea
|
||||
gitea_db_password: "{{ vault_db_password }}"
|
||||
7
ansible/inventory/host_vars/git/vault
Normal file
7
ansible/inventory/host_vars/git/vault
Normal file
@ -0,0 +1,7 @@
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
38343062386631643835333736313032396433363666393663343161363264393833646231333038
|
||||
6234663931623536666535343762336233383065616432610a343062353463303761373039306661
|
||||
65663964313565316661323664323632653363396434323537356331636364363639333130346461
|
||||
3038653465663339300a636132303165343461373838376633626638616266633164643465396662
|
||||
31363736376366376461353165613838666537666561323164316662613435643861643536306561
|
||||
3232386238653430383038343162643066653164306439353231
|
||||
17
ansible/inventory/hosts.yaml
Normal file
17
ansible/inventory/hosts.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
ungrouped:
|
||||
hosts:
|
||||
bastion:
|
||||
ansible_host: 51.222.155.202
|
||||
ansible_ssh_user: root
|
||||
|
||||
docker:
|
||||
hosts:
|
||||
docker-ext:
|
||||
ansible_ssh_user: root
|
||||
docker-int:
|
||||
ansible_ssh_user: root
|
||||
git:
|
||||
ansible_ssh_user: root
|
||||
basementpi:
|
||||
ansible_host: 10.11.1.10
|
||||
ansible_ssh_user: root
|
||||
Loading…
x
Reference in New Issue
Block a user