diff --git a/roles/cardano_node/defaults/main.yml b/roles/cardano_node/defaults/main.yml index 387432a..65dbf5a 100644 --- a/roles/cardano_node/defaults/main.yml +++ b/roles/cardano_node/defaults/main.yml @@ -43,5 +43,8 @@ cardano_node_socket_name: node.socket # Cardano network cardano_node_network: mainnet +# Config +cardano_node_config_file: '{{ cardano_node_dir }}/config/{{ cardano_node_network }}-config.json' + # Topology cardano_node_topology_file: '{{ cardano_node_dir }}/config/{{ cardano_node_network }}-topology.json' diff --git a/roles/cardano_node/tasks/docker.yml b/roles/cardano_node/tasks/docker.yml index d2efe92..09cf5cd 100644 --- a/roles/cardano_node/tasks/docker.yml +++ b/roles/cardano_node/tasks/docker.yml @@ -16,8 +16,9 @@ - '{{ cardano_node_port }}:{{ cardano_node_container_port }}' - '{{ cardano_node_metrics_port }}:{{ cardano_node_metrics_container_port }}' env: - CARDANO_CONFIG: '{{ cardano_node_dir }}/config/{{ cardano_node_network }}-config.json' + CARDANO_CONFIG: '{{ cardano_node_config_file }}' CARDANO_DATABASE_PATH: '{{ cardano_node_db_container_dir }}' + CARDANO_NETWORK: '{{ cardano_node_network }}' CARDANO_NODE_SOCKET_PATH: '{{ cardano_node_ipc_container_dir }}/{{ cardano_node_socket_name }}' CARDANO_PORT: '{{ cardano_node_port | string }}' CARDANO_SOCKET_PATH: '{{ cardano_node_ipc_container_dir }}/{{ cardano_node_socket_name }}' diff --git a/roles/cardano_node/tasks/main.yml b/roles/cardano_node/tasks/main.yml index 0ad4c92..7e1ac0e 100644 --- a/roles/cardano_node/tasks/main.yml +++ b/roles/cardano_node/tasks/main.yml @@ -15,7 +15,6 @@ group: '{{ cardano_node_group }}' mode: '0755' loop: - - '{{ cardano_node_dir }}' - '{{ cardano_node_db_dir }}' - '{{ cardano_node_ipc_dir }}'