Initial commit
This commit is contained in:
24
deploy_gitea.yml
Normal file
24
deploy_gitea.yml
Normal 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
|
||||
Reference in New Issue
Block a user