ansible: Activate supplementary SLES repos using suseconnect
authorKienan Stewart <kstewart@efficios.com>
Thu, 25 Jan 2024 18:42:20 +0000 (13:42 -0500)
committerKienan Stewart <kstewart@efficios.com>
Fri, 2 Feb 2024 14:07:03 +0000 (09:07 -0500)
Change-Id: I25ce4a9c6a4d47efc478b559adf7bef3c37660fa
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
automation/ansible/roles/common/tasks/setup-Suse.yml
automation/ansible/roles/common/vars/SLES-15.yml
automation/ansible/roles/common/vars/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"
 
index 8330b4e83c0a4c7be39eb86fc2fd8a5c59168fea..dfce0eef3479fe6e9e3c6b549588d93392ea10e5 100644 (file)
@@ -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
index 17ad4fc7373aad07e964faf8d6568fb7408917e3..1251c853c4d3645ab9d382f1790d8b4929f82e1d 100644 (file)
@@ -11,3 +11,5 @@ common_packages:
   - sudo
   - tree
   - vim
+
+common_sles_connect_repos: []
This page took 0.024162 seconds and 4 git commands to generate.