30 lines
637 B
YAML
30 lines
637 B
YAML
# SPDX-FileCopyrightText: 2021 WTF Kooperative eG <https://wtf-eg.de/>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
---
|
|
- name: be sure the ki config directory exists
|
|
become: true
|
|
file:
|
|
path: /var/docker/ki
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: "0755"
|
|
|
|
- name: be sure the ki files are in place
|
|
become: true
|
|
template:
|
|
src: "{{ item }}.j2"
|
|
dest: "/var/docker/ki/{{ item }}"
|
|
owner: root
|
|
group: root
|
|
mode: "0655"
|
|
with_items:
|
|
- config.js
|
|
- docker-compose.yml
|
|
|
|
- name: be sure the ki services are running
|
|
community.docker.docker_compose:
|
|
project_src: /var/docker/ki
|