SUSE: Add OBS:devel:libraries:c_c++ repository

The liberasurecode package does not exist for openSUSE Leap < 42.3
so we need to grab it from the OBS devel repository directly.

Change-Id: If51849507f749ad70864c9f027bae9fa3f3f88be
This commit is contained in:
Markos Chandras 2017-05-18 12:40:44 +01:00
parent 76ca77d16b
commit c4bb89f3be
2 changed files with 14 additions and 3 deletions

View File

@ -24,12 +24,14 @@
tags:
- repo_server-install
- name: Enable OBS:Servers:Proxy repository for apt-cacher-ng (SUSE)
- name: Enable zypper repositories (SUSE)
zypper_repository:
refresh: yes
name: "OBS:Server:Proxy"
repo: http://download.opensuse.org/repositories/server:/proxy/openSUSE_Leap_{{ ansible_distribution_version }}
name: "{{ item.name }}"
repo: "{{ item.repo }}"
register: zypper_repository_added
with_items:
- "{{ zypper_repositories }}"
when:
- ansible_pkg_mgr == 'zypper'
tags:

View File

@ -14,6 +14,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
zypper_repositories:
# NOTE(hwoarang): apt-cacher-ng and liberasurecode do not exist for
# Leap < 42.3 so we need to grab them directly from the devel repo.
# Remove this when support for Leap < 42.3 is gone
- name: "OBS:Server:Proxy"
repo: http://download.opensuse.org/repositories/server:/proxy/openSUSE_Leap_{{ ansible_distribution_version }}
- name: "OBS:devel:libraries:c_c++"
repo: http://download.opensuse.org/repositories/devel:/libraries:/c_c++/openSUSE_Leap_{{ ansible_distribution_version }}/
systemd_utils_prefix: "/usr/lib/systemd"
repo_nginx_pid: /var/run/nginx.pid