Upgrade: Make removal list distribution-specific
When trying to execute an upgrade the removal fails
if packages in the list are included that cannot be
found in one of the repositories configured.
This patch endeavours to only remove packages that
will be found.
Change-Id: I67cc225b25fca005cdba3bf67793b4f23d6ae82a
(cherry picked from commit f939bf150f
)
This commit is contained in:
parent
8a8ff1c2e0
commit
933da4ea25
|
@ -65,6 +65,8 @@
|
|||
apt:
|
||||
pkg: "mariadb-galera-server*"
|
||||
state: absent
|
||||
with_items:
|
||||
- "{{ galera_server_upgrade_packages_remove }}"
|
||||
when:
|
||||
- ansible_pkg_mgr == 'apt'
|
||||
tags:
|
||||
|
|
|
@ -43,6 +43,11 @@ galera_server_mariadb_distro_packages:
|
|||
- rsync
|
||||
- socat
|
||||
|
||||
# The packages to uninstall during an upgrade from a previous version
|
||||
galera_server_upgrade_packages_remove:
|
||||
- MariaDB-Galera-server
|
||||
- MariaDB-server
|
||||
|
||||
galera_yum_repo_url: "http://yum.mariadb.org/10.0/centos/7/x86_64"
|
||||
galera_repo:
|
||||
state: "present"
|
||||
|
|
|
@ -57,6 +57,11 @@ galera_server_mariadb_distro_packages:
|
|||
- rsync
|
||||
- socat
|
||||
|
||||
# The packages to uninstall during an upgrade from a previous version
|
||||
galera_server_upgrade_packages_remove:
|
||||
- mariadb-galera-server
|
||||
- mysql-common
|
||||
|
||||
galera_debconf_items:
|
||||
- question: "mysql-server/root_password"
|
||||
name: "{{ galera_mariadb_apt_server_package }}"
|
||||
|
|
|
@ -57,6 +57,11 @@ galera_server_mariadb_distro_packages:
|
|||
- rsync
|
||||
- socat
|
||||
|
||||
# The packages to uninstall during an upgrade from a previous version
|
||||
galera_server_upgrade_packages_remove:
|
||||
- mariadb-server
|
||||
- mysql-common
|
||||
|
||||
galera_debconf_items:
|
||||
- question: "mysql-server/root_password"
|
||||
name: "{{ galera_mariadb_apt_server_package }}"
|
||||
|
|
Loading…
Reference in New Issue