'Change password for SELF.NAME against SELF.PASSWORD.
Please note that password must be cleartext.'

def _change_user_password(self):

    cmd = self._get_dscl()
    if self.password:
        cmd += ['-passwd', ('/Users/%s' % self.name), self.password]
    else:
        cmd += ['-create', ('/Users/%s' % self.name), 'Password', '*']
    (rc, out, err) = self.execute_command(cmd)
    if (rc != 0):
        self.module.fail_json(msg='Error    when    changing    password', err=err, out=out, rc=rc)
    return (rc, out, err)
