legacy-server-config/gitea/start.yml

26 lines
498 B
YAML
Raw Permalink Normal View History

2021-04-02 17:16:09 +00:00
---
- 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"