ki-ansible/tasks/main.yml

30 lines
637 B
YAML
Raw Normal View History

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
community.docker.docker_compose:
project_src: /var/docker/ki