Refactor: Organize Ansible project structure
- Reorganized Ansible project structure to follow best practices. - Created dedicated directories: , , , , and . - Categorized playbooks into (host-specific) and (service-specific). - Moved all roles into the directory and standardized their naming conventions. - Relocated to for better variable management. - Renamed to to reflect its global variable scope. - Created to correctly set the to the new directory. - Moved and into the directory. - Added to providing explanations for common commands. - Cleaned up directories from all individual roles to centralize version control.
This commit is contained in:
24
roles/docker_spin_up/tasks/gitea.yml
Normal file
24
roles/docker_spin_up/tasks/gitea.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
- name: gitea
|
||||
community.docker.docker_container:
|
||||
image: gitea/gitea:1.19.3
|
||||
name: gitea
|
||||
env:
|
||||
USER_UID: "1000"
|
||||
USER_GID: "1000"
|
||||
GITEA__database__DB_TYPE: "mysql"
|
||||
GITEA__database__HOST: "{{ mysql_host}}:3306"
|
||||
GITEA__database__NAME: "{{ GITEA__database__NAME }}"
|
||||
GITEA__database__USER: "{{ GITEA__database__USER }}"
|
||||
GITEA__database__PASSWD: "{{ GITEA__database__PASSWD }}"
|
||||
ROOT_URL: "http://pi-vpn:8082/"
|
||||
restart_policy: always
|
||||
networks:
|
||||
- name: http
|
||||
volumes:
|
||||
- "{{ docker_homepath }}/gitea:/data"
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
# - "8082:3000"
|
||||
- "222:22"
|
||||
Reference in New Issue
Block a user