From: Kienan Stewart Date: Thu, 25 Jan 2024 18:42:20 +0000 (-0500) Subject: ansible: Activate supplementary SLES repos using suseconnect X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=eb2261ea6b4989a3cac607a15327bcb3775e54ce;p=lttng-ci.git ansible: Activate supplementary SLES repos using suseconnect Change-Id: I25ce4a9c6a4d47efc478b559adf7bef3c37660fa Signed-off-by: Kienan Stewart --- diff --git a/automation/ansible/roles/common/tasks/setup-Suse.yml b/automation/ansible/roles/common/tasks/setup-Suse.yml index 85f1e21..da745d8 100644 --- a/automation/ansible/roles/common/tasks/setup-Suse.yml +++ b/automation/ansible/roles/common/tasks/setup-Suse.yml @@ -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" diff --git a/automation/ansible/roles/common/vars/SLES-15.yml b/automation/ansible/roles/common/vars/SLES-15.yml index 8330b4e..dfce0ee 100644 --- a/automation/ansible/roles/common/vars/SLES-15.yml +++ b/automation/ansible/roles/common/vars/SLES-15.yml @@ -10,3 +10,9 @@ common_packages: - rsync - sudo - vim + +common_sles_connect_repos: + - sle-module-basesystem + - sle-module-desktop-applications + - sle-module-development-tools + - sle-module-python3 diff --git a/automation/ansible/roles/common/vars/Suse.yml b/automation/ansible/roles/common/vars/Suse.yml index 17ad4fc..1251c85 100644 --- a/automation/ansible/roles/common/vars/Suse.yml +++ b/automation/ansible/roles/common/vars/Suse.yml @@ -11,3 +11,5 @@ common_packages: - sudo - tree - vim + +common_sles_connect_repos: []