Search code examples
sql-serveransibleadditionrecordnew-operator

How can Ansible Playbook add new records to MSSQL Server


I need to know if I can add new records to MS SQL Server DB as part of Ansible playbook.
We are trying to keep records in MSSQL Server of each deployment we have done, and it would be very convenient if it could be done directly from the playbook, since this will guarantee that for every host, when the deployment pass- it is updated directly


Solution

  • There are two options:

    I am currently using first option with prepared statement in jinja on my ubuntu machine and it works fine.