---

- name: Setup gslb service

  delegate_to: localhost
  register: result
  check_mode: "{{ check_mode }}"

  netscaler_gslb_service:
    nitro_user: "{{nitro_user}}"
    nitro_pass: "{{nitro_pass}}"
    nsip: "{{nsip}}"

    servicename: gslb-service-1
    servicetype: HTTP
    sitename: gslb-site-1
    ipaddress: 10.10.10.11
    port: 80
    publicip: 10.10.10.11
    publicport: 80
    maxclient: 100
    healthmonitor: "NO"
    cip: enabled
    cipheader: hello
    sitepersistence: NONE
    siteprefix: prefix
    clttimeout: 100
    maxbandwidth: 100
    downstateflush: enabled
    maxaaausers: 100
    monthreshold: 500
    hashid: 10
    comment: cool gslb service!
    appflowlog: enabled

    monitor_bindings:
      -
        monitor_name: lb-monitor-1
        weight: 100
