piolink_yhoh / piolink_yhoh.pask_test / 1.0.5 / module / pask_user Configuring user setting | "added in version" 2.10 of piolink_yhoh.pask_test" Authors: Yohan Oh (@piolink-yhoh)piolink_yhoh.pask_test.pask_user (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 congigure user setting of the PAS-K.
--- - name: User Test hosts: all connection: local collections: - piolink_yhoh.pask_test tasks: - name: Create User pask_user: prest_ip: "{{ansible_host}}" prest_port: "{{ansible_port}}" user_id: "{{user_id}}" user_pw: "{{user_pw}}" name: "piolink" description: "Piolink administrator" level: "user" log: "disable" password: "Admin123$" - name: Delete User pask_user: prest_ip: "{{ansible_host}}" prest_port: "{{ansible_port}}" user_id: "{{user_id}}" user_pw: "{{user_pw}}" name: "piolink" description: "Piolink administrator" level: "user" log: "disable" password: "Admin123$" state: "absent"
log: description: - Enter the access-right to access PAS-K's log. - The value should be 'enable' or 'disable'. type: str name: description: - Enter the name of the user. required: true type: str level: description: - Enter the level of the user. - The value should be 'superuser' or 'user'. 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 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 password: description: - Enter the password of the user. 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 description: description: - Enter the description of the user. type: str config_password: description: - Enter the password of the superuser. - If you want to enter configuration mode, you need the password. type: str