From 63c408ec0d0485657018f3dd73b011ec1407f020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=98=D0=BB=D1=8C=D0=B8=D0=BD?= Date: Thu, 27 Jun 2024 00:13:48 +0400 Subject: [PATCH] feat: :lock: Allow to define own repo pin priority --- defaults/main.yml | 1 + templates/etc/apt/preferences.d/mariadb.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index c94728d..d5ade5e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -13,6 +13,7 @@ galera_enable_mariadb_repo: true mariadb_debian_repo: "deb [arch=amd64,arm64,ppc64el] http://nyc2.mirrors.digitalocean.com/mariadb/repo/{{ mariadb_version }}/{{ ansible_distribution|lower }} {{ ansible_distribution_release|lower }} main" mariadb_debian_repo_keyserver: "keyserver.ubuntu.com" mariadb_debian_repo_pin: "nyc2.mirrors.digitalocean.com" +mariadb_debian_repo_pin_priority: 600 # Defines repository settings for rpm mariadb_redhat_repo: "https://yum.mariadb.org/{{ mariadb_version }}/{{ ansible_distribution|lower }}{{ ansible_distribution_major_version }}-amd64" diff --git a/templates/etc/apt/preferences.d/mariadb.j2 b/templates/etc/apt/preferences.d/mariadb.j2 index 0a54a03..d1eb2bb 100644 --- a/templates/etc/apt/preferences.d/mariadb.j2 +++ b/templates/etc/apt/preferences.d/mariadb.j2 @@ -1,3 +1,3 @@ Package: mariadb-* Pin: origin {{ mariadb_debian_repo_pin }} -Pin-Priority: 600 +Pin-Priority: {{ mariadb_debian_repo_pin_priority }}