piolink_yhoh / piolink_yhoh.pask_test / 1.0.5 / module / pask_route Configuring route setting | "added in version" 2.10 of piolink_yhoh.pask_test" Authors: Yohan Oh (@piolink-yhoh)piolink_yhoh.pask_test.pask_route (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 route setting of the PAS-K.
--- - name: Route Module Test connection: local hosts: targets collections: - piolink_yhoh.pask_test tasks: - name: Create route pask_route: prest_ip: "{{ansible_host}}" prest_port: "{{ansible_port}}" user_id: "{{user_id}}" user_pw: "{{user_pw}}" default_gateway: - { priority: "100", gateway: "192.168.214.1", health_check: [{id: "1"}] } - { priority: "5", gateway: "192.168.224.1", health_check: [{id: "1"}] } network: - { dest: "10.10.0.0/16", gateway: [ {gateway: "10.10.10.1"}, ], } - { dest: "10.20.0.0/16", interface: [ {interface: "v2933"}, {interface: "v2944"} ] }
network: description: - Enter route information for static routing. elements: dict suboptions: dest: description: - Enter the destination ip address. required: true type: str gateway: description: - Enter the gateway information for static routing. elements: dict suboptions: gateway: description: - Enter the gateway ip address to be routed through to reach the destination. type: str type: list interface: description: - Enter the interface information for static routing. elements: dict suboptions: interface: description: - Enter the VLAN interface name to be routed through to reach the destination. type: str type: list type: list 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 prest_ip: description: - Enter the PAS-K IP address. required: true type: str prest_port: description: - Enter the port number of PAS-K used for PREST-API. required: true type: str default_gateway: description: - Enter the default-gateway information. elements: dict suboptions: gateway: description: - Enter the default gateway ip address. required: true type: str health_check: description: - Enter health-check information for default-gateway. elements: dict suboptions: id: description: - Enter the health-check id for default-gateway. required: true type: str type: list priority: description: - Enter the priority of the default gateway. type: str type: list