Git: Finish moving to forgejo and update forgejo
This commit is contained in:
parent
cae68d9a46
commit
1d34a9d71c
5 changed files with 6 additions and 6 deletions
21
roles/git/tasks/base.yml
Normal file
21
roles/git/tasks/base.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
|
||||
- name: Check git directory exist
|
||||
ansible.builtin.file:
|
||||
path: git
|
||||
state: directory
|
||||
|
||||
- name: Copy template conf
|
||||
ansible.builtin.template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "git/{{ item.dest }}"
|
||||
loop:
|
||||
- { src: 'docker-compose.yml', dest: 'docker-compose.yml' }
|
||||
- { src: 'config.yml', dest: 'config.yml' }
|
||||
|
||||
- name: Update and restart container
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: git
|
||||
state: present
|
||||
pull: always
|
||||
become: true
|
4
roles/git/tasks/main.yml
Normal file
4
roles/git/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
|
||||
- ansible.builtin.import_tasks: base.yml
|
||||
name: base
|
Loading…
Add table
Add a link
Reference in a new issue