piolink_yhoh / piolink_yhoh.pask_test / 1.0.5 / module / pask_dns Configuring DNS setting | "added in version" 2.10 of piolink_yhoh.pask_test" Authors: Yohan Oh (@piolink-yhoh)piolink_yhoh.pask_test.pask_dns (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 DNS setting of the PAS-K.
--- - name: Dns Test hosts: all connection: local collections: - piolink_yhoh.pask_test tasks: - name: create dns ip pask_dns: prest_ip: "{{ansible_host}}" prest_port: "{{ansible_port}}" user_id: "{{user_id}}" user_pw: "{{user_pw}}" retry: "5" timeout: "10" id: - { id: "1", ip: "192.168.203.100" } - { id: "2", ip: "8.8.8.8" }
id: description: - Enter the information of the DNS server. elements: dict suboptions: id: description: - Enter the DNS server id. required: true type: str ip: description: - Enter the DNS server IP. required: true type: str type: list retry: description: - Enter the number of retry attempts of the DNS query. type: str timeout: description: - Enter timeout of the DNS query in seconds. 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 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