how to configure switch with ansible

i use following script can not redirect debug to a file and also can not change password or add user