---

- name: setup lb monitor
  register: result
  check_mode: "{{ check_mode }}"
  delegate_to: localhost
  netscaler_lb_monitor:
    nitro_user: "{{nitro_user}}"
    nitro_pass: "{{nitro_pass}}"
    nsip: "{{nsip}}"
    state: present

    monitorname: lb-monitor-1
    type: HTTP-INLINE
    action: DOWN
    respcode: [ "200", "203"]
    httprequest: "HEAD /file.html"


    customheaders: "HEADER_CUSTOM: NONE\r\n"
