Generally, you can do with Ansible everything you can do with CLI on your platform. If you mean MS SQL server on Windows, you can:
1. use win_copy to copy script.sql from Ansible host to Windows machine 2. use win_shell: Invoke-SQLCmd -InputFile script.sql. Thank you, - Igor пн, 13 мая 2019 г. в 18:16, Ryad karkar <[email protected]>: > Hey, > > Someone can help me please !! :) > > thanks community ansible !! ^^ > > Regards, > > > Le lundi 13 mai 2019 10:05:06 UTC+2, Ryad karkar a écrit : >> >> Hey all, >> >> I have a database SQL Server and i must run some script *.sql* on this >> database with ansible. >> >> I would like know if possible to run script .sql with ansible on database >> SQL Server ? >> >> Thanks for your help !! :) >> >> Thank you guy !! ;) >> >> Regards, >> > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/ea0e02fc-721e-4b23-9d13-2ad03bc47fc6%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/ea0e02fc-721e-4b23-9d13-2ad03bc47fc6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAM1nFkE3-y6TgWEvZPag2Kkq1%3D_z0djobWnvS_9H0Uc7ANGdkw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
