When I do a sql query with the mssql_script module, it fails and gives me
the following error:
FAILED! => {"changed": false, "module_stderr": "Excepción al llamar a
"Create" con los argumentos "1": "En línea: 4 Carácter: 21\r\n+ def
_ansiballz_main():\r\n+ ~\r\nSe esperaba una expresión después de
'('.\r\nEn línea: 8 Carácter: 19\r\n+ os.getcwd()\r\n+ ~\r\nSe esperaba una
expresión después de '('.\r\nEn línea: 20 Carácter: 27\r\n+ except
(AttributeError, OSError):\r\n+ ~\r\nFalta un argumento en la lista de
parámetros.\r\nEn línea: 22 Carácter: 29\r\n+ excludes = set(('', '.',
scriptdir))\r\n+ ~\r\nFalta una expresión después de ','.\r\nEn línea: 22
Carácter: 30\r\n+ excludes = set(('', '.', scriptdir))\r\n+
~~~~~~~~~\r\nToken 'scriptdir' inesperado en la expresión o la
instrucción.\r\nEn línea: 22 Carácter: 29\r\n+ excludes = set(('', '.',
scriptdir))\r\n+ ~\r\nFalta el paréntesis de cierre ')' en la
expresión.\r\nEn línea: 22 Carácter: 39\r\n+ excludes = set(('', '.',
scriptdir))\r\n+ ~\r\nToken ')' inesperado en la expresión o la
instrucción.\r\nEn línea: 22 Carácter: 40\r\n+ excludes = set(('', '.',
scriptdir))\r\n+ ~\r\nToken ')' inesperado en la expresión o la
instrucción.\r\nEn línea: 29 Carácter: 7\r\n+ if sys.version_info <
(3,):\r\n+ ~\r\nFalta '(' después de 'if' en la instrucción if.\r\nEn
línea: 29 Carácter: 30\r\n+ if sys.version_info < (3,):\r\n+ ~\r\nFalta una
expresión después de ','.\r\nNo se notificaron todos los errores de
análisis. Corrija los errores notificados e inténtelo de nuevo."\r\nEn
línea: 10 Carácter: 1\r\n+ $exec_wrapper =
[ScriptBlock]::Create($split_parts[0])\r\n+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo :
NotSpecified: (:) [], MethodInvocationException\r\n + FullyQualifiedErrorId
: ParseException\r\n \r\nLa expresión que sigue a '&' en un elemento de
canalización produjo un objeto no válido. El resultado debe ser un
\r\nnombre de comando, un bloque de script o un objeto CommandInfo.\r\nEn
línea: 11 Carácter: 2\r\n+ &$exec_wrapper\r\n+ ~~~~~~~~~~~~~\r\n +
CategoryInfo : InvalidOperation: (:) [], RuntimeException\r\n +
FullyQualifiedErrorId : BadExpression\r\n ", "module_stdout": "", "msg":
"MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
ansible [core 2.14.2]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules',
'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.11/site-packages/ansible
ansible collection location =
/root/.ansible/collections:/usr/share/ansible/collections
executable location = /bin/ansible
python version = 3.11.2 (main, Feb 16 2023, 00:00:00) [GCC 11.3.1 20221121
(Red Hat 11.3.1-4)] (/usr/bin/python3.11)
jinja version = 3.1.2
libyaml = True
ansible [core 2.14.2]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules',
'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.11/site-packages/ansible
ansible collection location =
/root/.ansible/collections:/usr/share/ansible/collections
executable location = /bin/ansible
python version = 3.11.2 (main, Feb 16 2023, 00:00:00) [GCC 11.3.1 20221121
(Red Hat 11.3.1-4)] (/usr/bin/python3.11)
jinja version = 3.1.2
libyaml = True
Operating System: AlmaLinux 9.2 (Turquoise Kodkod)
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/ba47360a-5809-49ab-b74e-469087e9429fn%40googlegroups.com.