lowlydba / lowlydba.sqlserver

:spoon: A cross-platform Ansible collection using PowerShell to configure and maintain SQL Server.
https://galaxy.ansible.com/ui/repo/published/lowlydba/sqlserver
GNU General Public License v3.0
20 stars 12 forks source link

[Bug] existing login parameters #159

Closed jkrilov closed 1 year ago

jkrilov commented 1 year ago

I'm looking to add the ability to add/remove roles to logins.

I noticed $sa referenced in a few places but it doesn't look like it's defined anywhere. Should it be $existingLogin instead? https://github.com/lowlydba/lowlydba.sqlserver/blob/dbb925d200c09a13e05114ad90aa6ac03663add8/plugins/modules/login.ps1#L74

lowlydba commented 1 year ago

It definitely should! Some copy and paste errors from the sa module. Thanks for identifying!

jkrilov commented 1 year ago

Do you want me to address that while I add the code for adding/removing roles?

jkrilov commented 1 year ago

After going through the required changes, I think adding/removing roles should probably be it's own module. I submitted a fix for this in the mean-time.