Files

38 lines
1.2 KiB
YAML

---
- name: Create directories for the container data and configuration files.
file:
path: "{{ docker_appdata_directory}}/{{ feedstack_directory_item }}"
state: directory
loop:
- weatherfeeder
- weatherprocessor
- 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 weatherprocessor configuration file from the provided template.
template:
src: "weatherprocessor/config.yml.j2"
dest: "{{ docker_appdata_directory }}/weatherprocessor/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"
...