]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: Add default repos on OpenSUSE Leap
authorDavid Galloway <dgallowa@redhat.com>
Tue, 2 Oct 2018 18:40:54 +0000 (14:40 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 2 Oct 2018 20:32:39 +0000 (16:32 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/common/tasks/zypper_systems.yml

index 0c74bba574b8397c38d31ea7d4d2d116ee4a3d3c..a7752e630e20028dccfc161ad92dd287fa6c0bf9 100644 (file)
   tags:
     - timezone
 
+- name: Add base OpenSUSE Leap repo
+  zypper_repository:
+    name: repo-oss
+    repo: "http://download.opensuse.org/distribution/leap/{{ ansible_distribution_version }}/repo/oss/"
+    state: present
+    auto_import_keys: yes
+
+- name: Add updates OpenSUSE Leap repo
+  zypper_repository:
+    name: repo-update-oss
+    repo: "http://download.opensuse.org/update/leap/{{ ansible_distribution_version }}/oss/"
+    state: present
+    auto_import_keys: yes
+
+- name: Refresh repos
+  zypper_repository:
+    repo: '*'
+    runrefresh: yes
+    auto_import_keys: yes