ansible: Activate supplementary SLES repos using suseconnect
[lttng-ci.git] / automation / ansible / roles / common / tasks / setup-Suse.yml
index 85f1e21e9eff96ea0cf1e7c295e476c42cbc9912..da745d855bd913359c299e0bcd0f7ab722b39da7 100644 (file)
@@ -1,4 +1,10 @@
 ---
+- 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}}"
+
 - name: Ensure common patterns are installed.
   zypper: "name={{ common_patterns }} type=pattern state=present update_cache=yes"
 
This page took 0.022725 seconds and 4 git commands to generate.