Install git-mirror container

This also moves the canonical home of this repo to my gitea instance!
This commit is contained in:
Jake Howard
2020-06-24 16:27:13 +01:00
parent 5f9b337c7a
commit 82a3c85263
4 changed files with 31 additions and 1 deletions

View File

@ -35,6 +35,15 @@
register: gitea_config_file
become: true
- name: Install git-mirror config file
template:
src: files/gitea/git-mirror-repositories.toml
dest: /opt/gitea/repositories.toml
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
register: git_mirror_config_file
become: true
- name: Cycle gitea container
docker_compose:
project_src: /opt/gitea
@ -42,7 +51,7 @@
remove_orphans: true
remove_volumes: true
state: "{{ item }}"
when: compose_file.changed or gitea_config_file.changed
when: compose_file.changed or gitea_config_file.changed or git_mirror_config_file.changed
loop:
- absent
- present