From: Kienan Stewart Date: Wed, 29 May 2024 12:54:53 +0000 (-0400) Subject: ansible: Print SUSE product name in connection task title X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=03c88e3ef1bb5a0c1aa825e4c2801ae4f5b44794;p=lttng-ci.git ansible: Print SUSE product name in connection task title Change-Id: I5dd337f7b80ad5e939a481fa5c6cab013a157ed1 Signed-off-by: Kienan Stewart --- 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}}"]