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
|
|
|
|
|
|
|
|
---
|
2022-11-01 16:39:00 +01:00
|
|
|
- name: Be sure the ki config directory exists
|
2021-08-02 22:13:26 +02:00
|
|
|
become: true
|
2022-05-10 15:25:20 +02:00
|
|
|
ansible.builtin.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"
|
|
|
|
|
2022-11-01 16:39:00 +01:00
|
|
|
- name: Be sure the ki files are in place
|
2021-08-02 22:13:26 +02:00
|
|
|
become: true
|
2022-05-10 15:25:20 +02:00
|
|
|
ansible.builtin.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
|
|
|
|
2022-11-01 16:39:00 +01: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
|
2023-12-04 22:11:43 +01:00
|
|
|
pull: true
|