---

- name: Setup servicegroup
  delegate_to: localhost
  register: result
  check_mode: "{{ check_mode }}"
  netscaler_servicegroup:

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

    servicegroupname: service-group-1
    servicetype: HTTP
    servicemembers:
      - ip: 10.78.78.78
        port: 80
        weight: 100
    monitorbindings:
      - monitorname: monitor-1
        weight: 80
      - monitorname: monitor-2
        weight: 20
