Role installs and set password for MySQL database in Centos. Post installation create a database and one username/password with full access to the database. Creates a table and insert data in to the same.
python and MySQL-python must be installed.
root_db_user: root root_db_pass: db_name: db_user: db_pass:
ansible-galaxy collection install community.mysql
- hosts: servers
roles:
- mysql_db
BSD
An optional section for the role authors to include contact information, or a website (HTML is not allowed).