26 lines
498 B
YAML
26 lines
498 B
YAML
---
|
|
- hosts: teier.eu
|
|
gather_facts: no
|
|
tasks:
|
|
- name: Check dc directory
|
|
stat:
|
|
path: /dc/gitea
|
|
register: gitea_dc_dir_stat
|
|
|
|
- name: Create gitea dc directory
|
|
file:
|
|
path: /dc/gitea
|
|
state: directory
|
|
mode: 0755
|
|
group: root
|
|
owner: root
|
|
when: gitea_dc_dir_stat.islnk is not defined
|
|
|
|
- name: Copy compose file
|
|
copy:
|
|
src: docker-compose.yml
|
|
dest: /dc/gitea/
|
|
|
|
- name: Start gitea
|
|
shell: "cd /dc/gitea && docker-compose up -d"
|
|
|