From 03c88e3ef1bb5a0c1aa825e4c2801ae4f5b44794 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Wed, 29 May 2024 08:54:53 -0400 Subject: [PATCH] ansible: Print SUSE product name in connection task title Change-Id: I5dd337f7b80ad5e939a481fa5c6cab013a157ed1 Signed-off-by: Kienan Stewart --- automation/ansible/roles/suse/tasks/product.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automation/ansible/roles/suse/tasks/product.yml b/automation/ansible/roles/suse/tasks/product.yml index c6c450e..2979582 100644 --- a/automation/ansible/roles/suse/tasks/product.yml +++ b/automation/ansible/roles/suse/tasks/product.yml @@ -1,12 +1,12 @@ --- -- name: Connect product using full version +- name: "Connect product '{{product}}' using full version" ansible.builtin.command: argv: ['SUSEConnect', '-p', "{{product}}/{{ansible_distribution_version}}/{{ansible_architecture}}"] register: connect ignore_errors: true # Some products don't use the full version, but only the major version -- name: Connect production using major version +- name: "Connect product '{{product}}' using major version" when: connect.rc != 0 ansible.builtin.command: argv: ['SUSEConnect', '-p', "{{product}}/{{ansible_distribution_major_version}}/{{ansible_architecture}}"] -- 2.34.1