Ansible-elasticsearch and network.bind_host array

Good Morning,

Simple question for ansible-elasticsearch configuration for the network.bind_host array
How to setup array of interface properly with ansible ?

Her is part of my yml

  • hosts: LIST
    user: USER1

    roles:

    • { role: elasticsearch, es_instance_name: "node2", es_heap_size: "31g", es_data_dirs: "/data/ES2/",
      es_config: {
      cluster.name: "rand_cluster",
      http.port: 9201,
      transport.tcp.port: 9301,
      node.data: true,
      node.master: false,
      bootstrap.memory_lock: true,
      network.bind_host: [ "em4:ipv4", "local" ],
      network.publish_host: "em4:ipv4",
      discovery.zen.ping.unicast.hosts: ["MN01"],
      }
      }
      vars:
      es_scripts: false
      es_templates: false
      es_version_lock: false
      es_version: 5.4.0
      es_java_install: true

result in config file for network part

network.bind_host:

  • em4:ipv4
  • local
    network.publish_host: em4:ipv4

Expected

network.bind_host: [ "em4:ipv4", "local" ]
network.publish_host: "em4:ipv4"

Any comment will be welcome

Thank you

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.