From bca87952a89d045b37e8d961ed6062b69703849e Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Sat, 29 Dec 2018 17:56:58 -0500 Subject: [PATCH] cleanup: stop setting priority in a follow-up task We can set priority directly inside the yum_repository module therefore there's no need for us to actually set it in a follow-up task that's not idempotent. Change-Id: Ie5ae5c051055ed532b3ae9dd64c2cb3d15c7173a --- tasks/galera_client_install_yum.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/tasks/galera_client_install_yum.yml b/tasks/galera_client_install_yum.yml index 1b0060b..fe62919 100644 --- a/tasks/galera_client_install_yum.yml +++ b/tasks/galera_client_install_yum.yml @@ -62,6 +62,7 @@ name: "{{ item.name }}" description: "{{ item.description }}" baseurl: "{{ item.baseurl }}" + priority: 25 gpgkey: "{{ item.gpgkey | default(omit) }}" gpgcheck: yes enabled: yes @@ -73,13 +74,3 @@ - "{{ galera_client_repo }}" tags: - galera-repos - -# NOTE(hwoarang): MariaDB repository is prioritized at 99 by default -# and that allows yum to install mariadb client from the RDO repos, which -# is not good. This task ensures that the following tasks will choose -# MariaDB repo as the highest priority. -- name: Ensure MariaDB repository takes highest priority - command: | - yum-config-manager - --enable MariaDB - --setopt="MariaDB.priority=25"