diff --git a/defaults/main.yml b/defaults/main.yml index bca5176..a039409 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -9,8 +9,10 @@ beacon_node_total_nodes: 1 beacon_node_cont_tag: '{{ beacon_node_network }}-{{ beacon_node_build_flavour }}' beacon_node_cont_image: 'statusteam/nimbus_beacon_node:{{ beacon_node_cont_tag }}' -beacon_node_cont_vol: '/docker/beacon_node' - beacon_node_disovery_port: 9000 beacon_node_listening_port: 9000 +# general container management +cont_state: started +cont_recreate: false +cont_restart: false diff --git a/tasks/beacon_node.yml b/tasks/beacon_node.yml index 9e57154..4237d49 100644 --- a/tasks/beacon_node.yml +++ b/tasks/beacon_node.yml @@ -12,9 +12,9 @@ image: '{{ beacon_node_cont_image }}' pull: true restart_policy: always - state: 'started' - recreate: false - restart: false + state: '{{ cont_state }}' + recreate: '{{ cont_recreate }}' + restart: '{{ cont_restart }}' ports: - '{{ public_tcp_port }}:{{ beacon_node_listening_port }}' - '{{ public_udp_port }}:{{ beacon_node_disovery_port }}/udp'