Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lb-monitor is not able to be used #16

Open
HaroldYE opened this issue Sep 26, 2024 · 0 comments
Open

lb-monitor is not able to be used #16

HaroldYE opened this issue Sep 26, 2024 · 0 comments

Comments

@HaroldYE
Copy link

  • hosts: fortigates
    collections:
    • fortinet.fortios
      vars:
      vdom: "root"
      ansible_httpapi_use_ssl: yes
      ansible_httpapi_validate_certs: False
      ansible_httpapi_port: 443
      ansible_connection: httpapi
      tasks:
    • name: Configure server load balancing health monitors.
      fortinet.fortios.fortios_firewall_ldb_monitor:
      vdom: "{{ vdom }}"
      state: "present"
      firewall_ldb_monitor:
      http_get: "/"
      http_match: "HTTP/1.1 200 OK"
      name: "cephdash"
      port: "8443"
      type: "http"
    • name: Configure virtual IP for IPv4.
      fortios_firewall_vip:
      vdom: "{{ vdom }}"
      state: "present"
      firewall_vip:
      name: "test11"
      extip: "12.12.12.12"
      extintf: "any"
      extport: "443"
      server_type: "tcp"
      type: "server-load-balance"
      ldb_method: "first-alive"
      mappedip:
      - range: "10.10.10.62-10.10.10.62"
      realservers:
      - address: "10.10.10.10" # Replace with a valid firewall address or remove if unnecessary
      healthcheck: "disable"
      id: 1 # No need to quote integers
      ip: "10.10.10.10"
      port: 443 # No need to quote port numbers
      status: "active"
      monitor:
      - name: "cephdash"
      type: "ip"

even ansible-playbooks successfully run and lb has been created. but health check is not able to be config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant