The mssql_login module is used to create and manage SQL Server Logins
frank:
mssql_login.present
- domain: mydomain
Ensure that the named login is absent
The name of the login to remove
Checks existence of the named login. If not present, creates the login with the specified roles and options.
The name of the login to manage
Creates a SQL Server authentication login Since hashed passwords are varbinary values, if the new_login_password is 'long', it will be considered to be HASHED.
Creates a Windows authentication login. Needs to be NetBIOS domain or hostname
Add this login to all the server roles in the list
Can be a list of strings, a dictionary, or a list of dictionaries