ansible: Switch SLES product registrations to use common task
[lttng-ci.git] / automation / ansible / roles / developer / tasks / setup-Suse.yml
index 1373dff38b595e678e3f9b74e463529b2b50dd5b..bda46e9f438e195975827f88219de9285af56829 100644 (file)
@@ -2,6 +2,9 @@
 
 - name: Activate required products
   when: ansible_distribution == 'SLES'
-  ansible.builtin.command:
-    argv: ['suseconnect', '-p', "{{item}}/{{ansible_distribution_version}}/{{ansible_architecture}}"]
-  with_items: "{{developer_sles_products|default([])}}"
+  include_role:
+    name: suse
+    tasks_from: product
+  loop: "{{developer_sles_products|default([])}}"
+  loop_control:
+    loop_var: 'product'
This page took 0.02195 seconds and 4 git commands to generate.