On Thu, 6 Jun 2019 at 12:07, Ryad karkar <[email protected]> wrote: > > Hi all, > > I have install mssql-cli for execut command line on instance MSSQL but when i > use this task: > > - name: "conenct instance mssql" > command: mssql-cli -S my_hote -U my_user > delegate_to: localhost > > This task not works but on my prompt Debian this command line works why ?
I'm not familair with mssql-cli but from the docs at https://github.com/dbcli/mssql-cli/blob/master/doc/usage_guide.md it appears to be an "interactive command line query tool". You ansible task just runs one command, which connects to a database. That's not very useful. So, what are you trying to do? Do a query and return results? It might be that mssql-cli can ONLY operate in interactive mode which makes it unsuitable for this purpose. -- Dick Visser Trust & Identity Service Operations Manager GÉANT -- 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/CAL8fbwOXgUs4ePXwBg%2BMwBHdJ5YJHiWpjHZF30F3euFqi0a1uw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
