Initial commit

This commit is contained in:
n.simonov
2026-01-26 23:13:34 +04:00
commit b0ff108a66
10 changed files with 499 additions and 0 deletions

24
deploy_gitea.yml Normal file
View File

@@ -0,0 +1,24 @@
- name: "Prepare dirs for gitea docker"
hosts: gitea
tasks:
- name: "Make dirs"
ansible.builtin.file:
path: "{{ item.path }}"
state: directory
owner: "{{ item.owner }}"
group: "{{ docker_group }}"
mode: "{{ item.mode }}"
loop: "{{ compose_dirs }}"
- name: "Bring cert"
ansible.builtin.template:
src: "templates/gitea/{{ item }}.pem"
dest: "{{ docker_compose_data_dir }}/config/{{ item }}.pem"
loop:
- cert
- key
- name: "Deploy gitea docker"
hosts: gitea
roles:
- role: docker_compose