23 lines
803 B
YAML
23 lines
803 B
YAML
---
|
|
- name: Validate Forgejo variables
|
|
ansible.builtin.import_tasks: validate.yaml
|
|
|
|
- name: Configure SSH passthrough
|
|
ansible.builtin.import_tasks: ssh-passthrough.yaml
|
|
|
|
- name: Deploy Forgejo using shared docker_service role
|
|
ansible.builtin.include_role:
|
|
name: docker_service
|
|
vars:
|
|
service_name: "forgejo"
|
|
service_base_path: "{{ forgejo_base_path }}"
|
|
service_directories:
|
|
- { path: "data", mode: "0755" }
|
|
- { path: "config", mode: "0755" }
|
|
service_templates:
|
|
- { src: "app.ini.j2", dest: "config/app.ini", mode: "0644" }
|
|
- { src: "docker-compose.yml.j2", dest: "docker-compose.yml", mode: "0644" }
|
|
health_check_enabled: true
|
|
health_check_url: "http://localhost:{{ forgejo_http_port }}/"
|
|
health_check_delay: 5
|
|
health_check_retries: 15
|