geerlingguy / ansible-role-mysql

Ansible Role - MySQL
https://galaxy.ansible.com/geerlingguy/mysql/
MIT License
1.05k stars 861 forks source link

force mariadb installation on ubuntu 22.04 not working #519

Closed solick closed 1 year ago

solick commented 1 year ago

I tried to force a mariadb installation on ubuntu 22.04 but even I set

mysql_packages:
  - mariadb-client
  - mariadb-server
  - python-mysqldb

in the host var the role is installing mysql.

how could I force a mariadb installation here?

solick commented 1 year ago

Solved it. I use a pre_task in my role and needed there to check if mysql_packaes is not defined before setting the facts there.