{%- if taskserv.name == "k8s-nodejoin" %} 
# Main Ip for node should be in same K8S_MASTER network
# Be sure MAIN_IP is alive and reachable 
CLUSTER="{{taskserv.cluster}}"
CP_HOSTNAME="{{taskserv.cp_hostname}}"
{%- if defs and defs.servers -%} 
CP_IP="{%- for server in defs.servers -%}
{%- if server.hostname and server.hostname == taskserv.cp_hostname -%}
{%- if server.network_private_ip -%}{{server.network_private_ip}}{%- endif -%}
{%- endif -%}{%- endfor -%}"
{%- else %}
CP_IP=""
{%- endif %}
ADMIN_USER="{{taskserv.admin_user}}"
TARGET_PATH="{{taskserv.target_path}}"
SOURCE_PATH="{{taskserv.source_path}}"
ADMIN_HOST="{{taskserv.admin_host}}"
ADMIN_PORT="{{taskserv.admin_port}}"
SOURCE_CMD="{{taskserv.source_cmd}}"
TARGET_CMD="{{taskserv.target_cmd}}"
{%- endif %}
