Add initial configuration and templates for feedstack role.

This commit is contained in:
2026-02-07 17:01:21 +00:00
parent 6eee98f05e
commit 91e0c7334d
9 changed files with 197 additions and 0 deletions

30
tasks/main.yml Normal file
View File

@@ -0,0 +1,30 @@
---
- name: Create the directory for the weatherfeeder configuration file if it doesn't already exist.
file:
path: "{{ docker_appdata_directory}}/{{ feedstack_directory_item }}"
state: directory
loop:
- weatherfeeder
- nats/config
- nats/data
loop_control:
loop_var: feedstack_directory_item
label: "{{ feedstack_directory_item }}"
become: true
- name: Create the weatherfeeder configuration file from the provided template.
template:
src: "weatherfeeder/config.yml.j2"
dest: "{{ docker_appdata_directory }}/weatherfeeder/config.yml"
become: true
- name: Create the nats configuration file from the provided template.
template:
src: "nats/nats.conf.j2"
dest: "{{ docker_appdata_directory }}/nats/config/nats.conf"
become: true
- name: Run the docker-compose role to apply the docker-compose.yml file.
import_role:
name: "docker-compose"
...