mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 02:27:03 +03:00
change gitignore
This commit is contained in:
parent
5e4eed3dfd
commit
1e84eaf01a
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,6 +1,6 @@
|
||||
init.sql
|
||||
.venv/
|
||||
.env
|
||||
.env*
|
||||
.pytest_cache/
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
5
ansible/playbooks/gitea.yml
Normal file
5
ansible/playbooks/gitea.yml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: gitea
|
||||
become: true
|
||||
roles:
|
||||
- gitea
|
||||
2
ansible/playbooks/group_vars/gitea
Normal file
2
ansible/playbooks/group_vars/gitea
Normal file
@ -0,0 +1,2 @@
|
||||
gitea_version: 1.23.7-rootless
|
||||
postgres_version: 14
|
||||
2
ansible/playbooks/hosts
Normal file
2
ansible/playbooks/hosts
Normal file
@ -0,0 +1,2 @@
|
||||
[gitea]
|
||||
vds
|
||||
49
ansible/playbooks/roles/gitea/tasks/main.yml
Normal file
49
ansible/playbooks/roles/gitea/tasks/main.yml
Normal file
@ -0,0 +1,49 @@
|
||||
---
|
||||
- name: create gitea directories
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- "/srv/gitea"
|
||||
- "/srv/gitea/data"
|
||||
- "/srv/gitea/config"
|
||||
- "/srv/gitea/postgres"
|
||||
|
||||
- name: change gitea directories permissions
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
owner: 1000
|
||||
group: 1000
|
||||
with_items:
|
||||
- "/srv/gitea/data"
|
||||
- "/srv/gitea/config"
|
||||
|
||||
- name: create gitea db container
|
||||
community.docker.docker_container:
|
||||
name: gitea-db
|
||||
image: "docker.io/library/postgres:{{ postgres_version }}"
|
||||
env_file: /home/kreamond/instalinks/.env_gitea_db
|
||||
restart_policy: always
|
||||
volumes:
|
||||
- /srv/gitea/postgres:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5433:5432"
|
||||
networks:
|
||||
- name: "app-net"
|
||||
|
||||
- name: create gitea container
|
||||
community.docker.docker_container:
|
||||
name: gitea-server
|
||||
image: "docker.gitea.com/gitea:{{ gitea_version }}"
|
||||
env_file: /home/kreamond/instalinks/.env_gitea_server
|
||||
restart_policy: always
|
||||
volumes:
|
||||
- /srv/gitea/data:/var/lib/gitea
|
||||
- /srv/gitea/config:/etc/gitea
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "2222:2222"
|
||||
networks:
|
||||
- name: "app-net"
|
||||
Loading…
x
Reference in New Issue
Block a user