| 287 | You will get a similar output as following upon successful completion of the plays. Troubleshoot if there are errors. |
| 288 | |
| 289 | |
| 290 | {{{ |
| 291 | PLAY [setup mysql] ************************************************************************************************************************************************************************************************ |
| 292 | |
| 293 | TASK [Update] ***************************************************************************************************************************************************************************************************** |
| 294 | changed: [10.1.1.3] |
| 295 | changed: [10.1.1.2] |
| 296 | |
| 297 | TASK [install python, pip etc] ************************************************************************************************************************************************************************************ |
| 298 | changed: [10.1.1.2] => (item=pip) |
| 299 | changed: [10.1.1.2] => (item=python3-dev) |
| 300 | changed: [10.1.1.2] => (item=default-libmysqlclient-dev) |
| 301 | changed: [10.1.1.2] => (item=build-essential) |
| 302 | [WARNING]: Consider using the apt module rather than running 'apt-get'. If you need to use command because apt is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in |
| 303 | ansible.cfg to get rid of this message. |
| 304 | changed: [10.1.1.3] => (item=pip) |
| 305 | changed: [10.1.1.3] => (item=python3-dev) |
| 306 | changed: [10.1.1.3] => (item=default-libmysqlclient-dev) |
| 307 | changed: [10.1.1.3] => (item=build-essential) |
| 308 | |
| 309 | TASK [Install MySQL server] *************************************************************************************************************************************************************************************** |
| 310 | changed: [10.1.1.2] |
| 311 | changed: [10.1.1.3] |
| 312 | |
| 313 | TASK [Install MySQL client] *************************************************************************************************************************************************************************************** |
| 314 | changed: [10.1.1.3] |
| 315 | changed: [10.1.1.2] |
| 316 | |
| 317 | TASK [pip install mysqlclient] ************************************************************************************************************************************************************************************ |
| 318 | changed: [10.1.1.2] |
| 319 | changed: [10.1.1.3] |
| 320 | |
| 321 | TASK [Start the MySQL service] ************************************************************************************************************************************************************************************ |
| 322 | ok: [10.1.1.3] |
| 323 | ok: [10.1.1.2] |
| 324 | |
| 325 | TASK [copy .my.cnf file with root password credentials] *********************************************************************************************************************************************************** |
| 326 | changed: [10.1.1.3] |
| 327 | changed: [10.1.1.2] |
| 328 | |
| 329 | TASK [update mysql root password for all root accounts] *********************************************************************************************************************************************************** |
| 330 | changed: [10.1.1.3] |
| 331 | changed: [10.1.1.2] |
| 332 | |
| 333 | TASK [Create database] ******************************************************************************************************************************************************************************************** |
| 334 | changed: [10.1.1.3] |
| 335 | changed: [10.1.1.2] |
| 336 | |
| 337 | TASK [Create user] ************************************************************************************************************************************************************************************************ |
| 338 | changed: [10.1.1.3] |
| 339 | changed: [10.1.1.2] |
| 340 | |
| 341 | TASK [Grant permissions] ****************************************************************************************************************************************************************************************** |
| 342 | changed: [10.1.1.2] |
| 343 | changed: [10.1.1.3] |
| 344 | |
| 345 | TASK [Reload privileges] ****************************************************************************************************************************************************************************************** |
| 346 | changed: [10.1.1.2] |
| 347 | changed: [10.1.1.3] |
| 348 | |
| 349 | PLAY RECAP ******************************************************************************************************************************************************************************************************** |
| 350 | 10.1.1.2 : ok=12 changed=11 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 |
| 351 | 10.1.1.3 : ok=12 changed=11 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 |
| 352 | }}} |
| 353 | |
| 354 | |