From bff21bed1357376d4be87c3c3dd4346c13ad9f5f Mon Sep 17 00:00:00 2001 From: Jeffrey Cutter Date: Sun, 24 Mar 2024 20:28:01 +0800 Subject: [PATCH] Fix analysis handler for registering to pre-leapp activation key. (#167) --- changelogs/fragments/fix_sat_reg_handler_pre_leapp.yml | 4 ++++ roles/analysis/handlers/main.yml | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 changelogs/fragments/fix_sat_reg_handler_pre_leapp.yml diff --git a/changelogs/fragments/fix_sat_reg_handler_pre_leapp.yml b/changelogs/fragments/fix_sat_reg_handler_pre_leapp.yml new file mode 100644 index 0000000..bd9ab47 --- /dev/null +++ b/changelogs/fragments/fix_sat_reg_handler_pre_leapp.yml @@ -0,0 +1,4 @@ +--- +minor_changes: + - Fix analysis handler for Satellite registration (add conditional for if pre_leapp key is defined). +... diff --git a/roles/analysis/handlers/main.yml b/roles/analysis/handlers/main.yml index 239f5a7..bc28492 100644 --- a/roles/analysis/handlers/main.yml +++ b/roles/analysis/handlers/main.yml @@ -6,6 +6,10 @@ activationkey: "{{ satellite_activation_key_pre_leapp }}" org_id: "{{ satellite_organization }}" force_register: true + when: + - leapp_upgrade_type == 'satellite' + - satellite_organization is defined + - satellite_activation_key_pre_leapp is defined # TODO: Having issues with community.general.redhat_subscription and subscription-manager on RHEL 6. - name: Register to pre leapp activation key RHEL 6