mrlesmithjr / ansible-mariadb-galera-cluster

MIT License
135 stars 113 forks source link

Allow to upgrade packages when allowed by mariadb_upgrade #226

Open elcomtik opened 16 hours ago

elcomtik commented 16 hours ago

Allow upgrading packages when allowed by mariadb_upgrade

Description

I observed that when I wanted to upgrade from old MariaDB 10.6 to the current default 10.11, not even setting mariadb_upgrade=True was sufficient to upgrade packages when they were already installed on my system.

So I introduced logic, which allows to update packages when the user wants to upgrade.

This is potentionally dangerous and testing is advised for any upgrades on the production database.

Related Issue

Types of changes

Checklist:

elcomtik commented 13 hours ago

@eRadical can you take a look at code in my PR?

eRadical commented 1 hour ago

Can you also add in debian.yml ?

Or maybe take task out of redhat/debian as it is not different!

elcomtik commented 2 minutes ago

OK, I extracted the package install into its own file and included it in both debian/redhat.