Hello,

I have create module mssql_query in my repertory library/mssql_query.py    
for execut commande ligne on my database MSSQL
with this website : 
https://github.com/melmorabity/ansible-mssql-query/blob/master/mssql_query.py

My task is :

- local_action:
     module: mssql_query
     login_host: my_name_host
     login_user: my_user
     port: 1433
     login_password: my_password
     query: SELECT * FROM dbo.my_table
     db: my_database
     autocommit: true
     tds_version: 7.1
     as_dict: false
  delegate_to: localhost        (or delegate_to: mydatabase)

but the error is :

An exception occurred during task execution. To see the full traceback, use 
-vvv. The error was: TypeError: connect() got an unexpected keyword 
argument 'port'
fatal: [my_name_host -> localhost]: FAILED! => {"changed": false, 
"module_stderr": "Traceback (most recent call last):\n  File \"<stdin>\", 
line 113, in <module>\n  File \"<stdin>\", line 105, in _ansiballz_main\n  
File \"<stdin>\", line 48, in invoke_module\n  File 
\"/tmp/ansible_mssql_query_payload_hXTFhK/__main__.py\", line 155, in 
<module>\n  File \"/tmp/ansible_mssql_query_payload_hXTFhK/__main__.py\", 
line 143, in main\nTypeError: connect() got an unexpected keyword argument 
'port'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr 
for the exact error", "rc": 1}


Someone have any idea please ??!! :)
I need a expert ansible for my problem please !!

Best Regards,

Karther



-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2a09810c-a857-4e8c-a9fa-0e5f1bfa0a95%40googlegroups.com.

Reply via email to