Do not pin packages nor install gpgs for distro method

When we do not need to install external GPG keys nor pin packages
to external sources when installation_method is set to distro.

Change-Id: I29bbcacd6ce06516f1ef34cf58da8cac8ef79ea8
This commit is contained in:
Dmitriy Rabotyagov 2024-04-24 19:22:18 +02:00
parent 1d9a0837e9
commit 5e68cb6943
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,8 @@
- name: Run the apt package pinning role
include_role:
name: apt_package_pinning
when:
- rabbitmq_install_method == 'external_repo'
vars:
apt_package_pinning_file_name: "rabbitmq.pref"
apt_package_pinning_priority: 999
@ -32,6 +34,8 @@
- name: Install GPG keys
apt_key:
data: "{{ lookup('file', item.file) }}"
when:
- rabbitmq_install_method == 'external_repo'
with_items: "{{ rabbitmq_gpg_keys | selectattr('file', 'defined') | list }}"
tags:
- rabbitmq-apt-keys