mysql_script module #285
Replies: 3 comments 4 replies
-
Hi there! I understand that having a module for executing a script can be interesting (perhaps useful to reduce integration tests lines of code too?), but are users of mysql collection asking for this feature? If I had to choose a name, I'd go for mysql_script name too. |
Beta Was this translation helpful? Give feedback.
-
Maybe other ideas of new modules/plugins? |
Beta Was this translation helpful? Give feedback.
-
@Andersson007 @rsicart just when I was searching on Google for the feature, this discussion thread came up. I'm in urgent need of the module. Having this module, it'll help me a lot. I need to automate some deployments for my client and during deployments, they execute a series of sql scripts. If we had the mysql_scripts module life would have been a lot easier for me!!! Thanks. |
Beta Was this translation helpful? Give feedback.
-
What do you folks think of creating the
mysql_script
module?This feature is popular among
community.postgresql
collection users but it's part ofpostgresql_query
module and we are thinking of moving the functionality to the dedicatedpostgresql_script
module. See ansible-collections/community.postgresql#180 (comment) and nearby.Also I've created a PR ansible-collections/community.postgresql#188
So there are several questions
mysql_script
It can be, for example
Return values can be similar to
mysql_query
but if the file contains several queries, the module will return data relevant only for the last query@bmalynovytch @Jorge-Rodriguez @rsicart
(I'm not in favor of not idempotent stuff but it seems useful for users)
Beta Was this translation helpful? Give feedback.
All reactions