Run Select query and Insert query inansible

Hello all,

I have got lot of answers for my previous post. Thanks for everyone.

Could you please help me to insert record to MYSQL db through the playbook.

Tharindu

Hi anyone can support

To my knowledge there is no Ansible module to do this.
So you need to find out how to do that on the command line. Then you have command, shell and script module at you disposal in Ansible.

If you are asking how to do that on the command line you should find the MySQL community and ask there.

https://stackoverflow.com/questions/30605950/running-a-select-query-with-an-ansible-task