2021-08-02 22:13:26 +02:00
|
|
|
# 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:
|
2021-08-26 19:49:06 +02:00
|
|
|
path: /var/docker/ki
|
2021-08-02 22:13:26 +02:00
|
|
|
state: directory
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: "0755"
|
|
|
|
|
2021-08-26 19:49:06 +02:00
|
|
|
- name: be sure the ki files are in place
|
2021-08-02 22:13:26 +02:00
|
|
|
become: true
|
|
|
|
template:
|
2021-08-26 19:49:06 +02:00
|
|
|
src: "{{ item }}.j2"
|
|
|
|
dest: "/var/docker/ki/{{ item }}"
|
2021-08-02 22:13:26 +02:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: "0655"
|
2021-08-26 19:49:06 +02:00
|
|
|
with_items:
|
|
|
|
- config.js
|
|
|
|
- docker-compose.yml
|
2021-08-02 22:13:26 +02:00
|
|
|
|
2021-08-26 19:49:06 +02:00
|
|
|
- name: be sure the ki services are running
|
2021-12-06 15:38:58 +01:00
|
|
|
become: true
|
2021-08-26 19:49:06 +02:00
|
|
|
community.docker.docker_compose:
|
|
|
|
project_src: /var/docker/ki
|
2021-09-15 19:47:17 +02:00
|
|
|
pull: yes
|