ansible: Switch SLES product registrations to use common task
[lttng-ci.git] / automation / ansible / roles / common / tasks / setup-Suse.yml
index 23b681b9de3332908e58ea33dd5800ced45d5c2e..a35ee7bded4b8a1cc71f701d8b3c28f90daefc80 100644 (file)
 
 - name: Connect SLES Repo
   when: ansible_distribution == 'SLES'
-  ansible.builtin.command:
-    argv: ['suseconnect', '-p', "{{item}}/{{ansible_distribution_version}}/{{ansible_architecture}}"]
-  with_items: "{{common_sles_connect_repos}}"
+  include_role:
+    name: suse
+    tasks_from: product
+  loop: "{{common_sles_connect_repos}}"
+  loop_control:
+    loop_var: 'product'
 
 - name: Ensure common patterns are installed.
   zypper: "name={{ common_patterns }} type=pattern state=present update_cache=yes"
This page took 0.022431 seconds and 4 git commands to generate.