2017-10-12 21:55:20 +08:00
|
|
|
---
|
|
|
|
# SUSE only supports the following:
|
|
|
|
# - ceph_origin == 'distro'
|
|
|
|
# - ceph_origin == 'repository' and ceph_repository == 'obs'
|
|
|
|
- name: Check for supported installation method on suse
|
|
|
|
fail:
|
|
|
|
msg: "Unsupported installation method origin:{{ ceph_origin }} repo:{{ ceph_repository }}'"
|
|
|
|
when:
|
|
|
|
- ceph_origin != 'distro' or (ceph_origin == 'repository' and ceph_repository != 'obs')
|
|
|
|
|
|
|
|
- name: include configure_suse_repository_installation.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: configure_suse_repository_installation.yml
|
2017-10-12 21:55:20 +08:00
|
|
|
when:
|
|
|
|
- ceph_origin == 'repository'
|
|
|
|
|
|
|
|
- name: install dependencies
|
|
|
|
zypper:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
update_cache: yes
|
|
|
|
with_items: "{{ suse_package_dependencies }}"
|
2018-12-20 17:00:26 +08:00
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
2017-10-12 21:55:20 +08:00
|
|
|
|
|
|
|
- name: include install_suse_packages.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: install_suse_packages.yml
|