mirror of https://github.com/ceph/ceph-ansible.git
fix SUSE/openSUSE naming
As SUSE 15.x and openSUSE Leap 15.x share the same base, make clear that both are targeted by the respective tasks Signed-off-by: Johannes Kastl <kastl@b1-systems.de>pull/4374/head
parent
cdbe958e55
commit
8e3511ddc7
|
@ -28,7 +28,7 @@
|
|||
failed_when: false
|
||||
register: stat_apt
|
||||
|
||||
- name: check for zypper package manager (OpenSUSE)
|
||||
- name: check for zypper package manager (SUSE/OpenSUSE)
|
||||
raw: stat /usr/bin/zypper
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
|
@ -49,7 +49,7 @@
|
|||
until: result is succeeded
|
||||
when: stat_apt.rc == 0
|
||||
|
||||
- name: install python for opensuse
|
||||
- name: install python for SUSE/OpenSUSE
|
||||
raw: zypper -n install python-base
|
||||
register: result
|
||||
until: result is succeeded
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
# SUSE only supports the following:
|
||||
# SUSE/openSUSE only supports the following:
|
||||
# - ceph_origin == 'distro'
|
||||
# - ceph_origin == 'repository' and ceph_repository == 'obs'
|
||||
- name: Check for supported installation method on suse
|
||||
- name: Check for supported installation method on SUSE/openSUSE
|
||||
fail:
|
||||
msg: "Unsupported installation method origin:{{ ceph_origin }} repo:{{ ceph_repository }}'"
|
||||
when: ceph_origin != 'distro' or (ceph_origin == 'repository' and ceph_repository != 'obs')
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
---
|
||||
- name: install suse dependencies
|
||||
- name: install SUSE/openSUSE dependencies
|
||||
package:
|
||||
name: "{{ suse_package_dependencies }}"
|
||||
state: present
|
||||
register: result
|
||||
until: result is succeeded
|
||||
|
||||
- name: install suse ceph packages
|
||||
- name: install SUSE/openSUSE ceph packages
|
||||
package:
|
||||
name: "{{ suse_ceph_pkgs | unique }}"
|
||||
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: check firewalld installation on redhat or suse
|
||||
- name: check firewalld installation on redhat or SUSE/openSUSE
|
||||
command: rpm -q firewalld
|
||||
args:
|
||||
warn: no
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
register: result
|
||||
until: result is succeeded
|
||||
|
||||
- name: install ceph-mds package on redhat or suse
|
||||
- name: install ceph-mds package on redhat or SUSE/openSUSE
|
||||
package:
|
||||
name: "ceph-mds"
|
||||
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
include_tasks: pre_requisite_non_container_debian.yml
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- name: install nfs rgw/cephfs gateway - suse
|
||||
- name: install nfs rgw/cephfs gateway - SUSE/openSUSE
|
||||
zypper:
|
||||
name: "{{ item.name }}"
|
||||
disable_gpg_check: yes
|
||||
|
|
Loading…
Reference in New Issue