Add vikunja as todo

This commit is contained in:
Tobias Reisinger 2024-01-02 01:34:34 +01:00
parent ad52cec21e
commit a9fa94e8f9
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 101 additions and 0 deletions
roles/vikunja/tasks

View file

@ -0,0 +1,21 @@
---
- name: Set common facts
ansible.builtin.import_tasks: tasks/set-default-facts.yml
- name: Deploy {{ svc.name }}
vars:
svc: "{{ vikunja_svc }}"
yml: "{{ vikunja_yml }}"
compose: "{{ vikunja_compose }}"
block:
- name: Import prepare tasks for common service
ansible.builtin.import_tasks: tasks/prepare-common-service.yml
- name: Template config
ansible.builtin.template:
src: yml.j2
dest: "{{ (service_path, 'config.yml') | path_join }}"
mode: "0600"
- name: Import start tasks for common service
ansible.builtin.import_tasks: tasks/start-common-service.yml