copy-static-configs.yaml

Overview

This YAML file is an Ansible playbook designed to automate the copying of specific static files into a Block Keeper (BK) directory structure. It primarily handles the transfer of WebAssembly (WASM) binary files, configuration files, key files, and an environment configuration file (.env) for container orchestration. This setup is essential for preparing the runtime environment of Block Keeper by ensuring all necessary binaries and configuration files are correctly placed before service startup.


Tasks and Their Functionality

The playbook consists of three main tasks executed sequentially:

1. Copy WASM binaries to Block Keeper

2. Copy configuration files

3. Copy .env file for container orchestration (compose)


Important Implementation Details


Interaction with Other System Components


Workflow Diagram

flowchart TD
A[Start Playbook] --> B[Copy WASM binaries]
B --> C[Copy Config Files & Keys]
C --> D{COPY_ENV defined and true?}
D -- Yes --> E[Copy .env File]
D -- No --> F[Skip .env Copy]
E & F --> G[End Playbook]

This file's role is foundational in setting up the runtime environment for Block Keeper by ensuring all necessary static files are present in designated directories before runtime. It is a critical step in deployment automation workflows.