Target Group
target_group
Example Syntax
name: Create Target Group
ionoscloudsdk.ionoscloud.target_group:
name: 'AnsibleAutoTestALB'
algorithm: ROUND_ROBIN
protocol: HTTP
targets:
- ip: 22.231.2.2
port: 8080
weight: 123
health_check_enabled: true
maintenance_enabled: false
health_check:
check_timeout: 2000
check_interval: 1000
retries: 3
http_health_check:
path: ./
method: GET
match_type: STATUS_CODE
response: '200'
regex: false
negate: false
wait: true
register: target_group_response
name: Update Target Group
ionoscloudsdk.ionoscloud.target_group:
name: 'AnsibleAutoTestALB - UPDATED'
algorithm: ROUND_ROBIN
protocol: HTTP
target_group: ''
wait: true
state: update
register: target_group_response_update
name: Remove Target Group
ionoscloudsdk.ionoscloud.target_group:
target_group: ''
wait: true
wait_timeout: 2000
state: absent
Returned object
For more examples please check out the tests here.
state: present
Available parameters for state present:
Name
Required
Description
state: absent
Available parameters for state absent:
Name
Required
Description
state: update
Available parameters for state update:
Name
Required
Description
Last updated
