piolink_yhoh / piolink_yhoh.pask_test / 1.0.5 / module / pask_real Configuring real server setting | "added in version" 2.10 of piolink_yhoh.pask_test" Authors: Yohan Oh (@piolink-yhoh)piolink_yhoh.pask_test.pask_real (1.0.5) — module
Install with ansible-galaxy collection install piolink_yhoh.pask_test:==1.0.5
collections: - name: piolink_yhoh.pask_test version: 1.0.5
You can configure real server setting of the PAS-K.
--- - name: create real connection: local hosts: targets collections: - piolink_yhoh.pask_test tasks: - name: Create real pask_real: prest_ip: "{{ansible_host}}" prest_port: "{{ansible_port}}" user_id: "{{user_id}}" user_pw: "{{user_pw}}" id: "101" rip: "172.16.123.24" rport: "5544" priority: "30" weight: "50" graceful_shutdown: "enable" max_connection: "12" upload_bandwidth: "100000" download_bandwidth: "200000" domain_filter: "1" pool_size: "100" pool_age: "200" pool_reuse: "300" pool_srcmask: "14" src_natip: "5.4.3.2" status: "disable" state: "present" - name: Delete real pask_real: prest_ip: "{{ansible_host}}" prest_port: "{{ansible_port}}" user_id: "{{user_id}}" user_pw: "{{user_pw}}" id: "101" rip: "172.16.123.24" state: "absent"
id: description: - Enter the real server id. required: true type: str mac: description: - Enter the real server mac address. type: str nat: description: - Enter the nat information of the real server. - The nat rule is applied only when the real server is used in gwlb. elements: dict suboptions: dip: description: - Enter the destination ip address and the number of the netmask bits. - If you enter 'source-nat' as a type, you can set this value. type: str external_ip: description: - Enter the external ip address. - If you enter 'one-to-one-nat' as a type, you can set this value. type: str id: description: - Enter the id of the nat rule. required: true type: str internal_ip: description: - Enter the Inernal ip address. - If you enter 'one-to-one-nat' as a type, you can set this value. type: str natip: description: - Enter the source nat ip address. - If you enter 'source-nat' as a type, you can set this value. type: str priority: description: - Enter the priority of the nat rule. type: str protocol: description: - Enter the protocol type of the packet to which the nat rule applies. - If you enter 'source-nat' as a type, you can set this value. - The value should be 'icmp', 'tcp', 'udp' or 'all'. type: str sip: description: - Enter the source ip address and the number of the netmask bits. - If you enter 'source-nat' as a type, you can set this value. type: str status: description: - Enter whether to use the nat rule. - The value should be 'enable' or 'disable'. type: str type: description: - Enter the type of the nat rule. - The value should be 'one-to-one-nat' or 'source-nat'. type: str type: list rip: description: - Enter the real server ip address. required: true type: str name: description: - Enter the real server name. type: str rport: description: - Enter the real server port number. type: str state: description: - Enter the status of this configuration. - If you want to delete this PAS-K configuration, enter 'absent', - otherwise, you can enter 'present' or you don't have to do enter anything. type: str backup: description: - Enter the id of the backup real server. type: str status: description: - Enter whether to use real server option. - The value should be 'enable' or 'disable'. type: str weight: description: - Enter the weight of ther real server. - The value is used when the lb-method is 'wlc' or 'wrr'. type: str user_id: description: - Enter the PAS-K user id. required: true type: str user_pw: description: - Enter the PAS-K user password. required: true type: str pool_age: description: - Enter the keep-alive time of connections. type: str prest_ip: description: - Enter the PAS-K IP address. required: true type: str priority: description: - Enter the priority of the real server. type: str interface: description: - Enter the vlan interface connected to the real server. type: str pool_size: description: - Enter the maximum number of connections to allow on the real server. type: str src_natip: description: - Enter the source NAT ip of the real server. type: str pool_reuse: description: - Enter the number of times the connection is reused. type: str prest_port: description: - Enter the port number of PAS-K used for PREST-API. required: true type: str health_check: description: - Enther the health-check information. elements: dict suboptions: id: description: - Enter the health-check id. required: true type: str type: list pool_srcmask: description: - Enter the source subnet mask of the connection. type: str domain_filter: description: - Enter the domain filter id. type: str max_connection: description: - Enter the maximum number of sessions of the real server. type: str upload_bandwidth: description: - Enter the maximum upload-bandwidth of the real server. type: str graceful_shutdown: description: - Enter whether to use the graceful-shudwon function. - The value should be 'enable' or 'disable'. type: str download_bandwidth: description: - Enter the maximum download-bandwidth of the real server. type: str