piolink_yhoh / piolink_yhoh.pask_test / 1.0.5 / module / pask_hostname Configuring hostname setting | "added in version" 2.10 of piolink_yhoh.pask_test" Authors: Yohan Oh (@piolink-yhoh)piolink_yhoh.pask_test.pask_hostname (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 hostname setting of the PAS-K.
--- - name: Hostname Test hosts: all connection: local collections: - piolink_yhoh.pask_test tasks: - name: create hostname pask_hostname: prest_ip: "{{ansible_host}}" prest_port: "{{ansible_port}}" user_id: "{{user_id}}" user_pw: "{{user_pw}}" hostname: "switch_ansible" - name: rename hostname pask_hostname: prest_ip: "{{ansible_host}}" prest_port: "{{ansible_port}}" user_id: "{{user_id}}" user_pw: "{{user_pw}}" hostname: "switch"
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 hostname: description: - Enter the hostname of the PAS-K. 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