ceph-ansible/roles/ceph-common/tasks/installs/install_on_redhat.yml

142 lines
3.9 KiB
YAML
Raw Normal View History

2014-09-05 03:14:11 +08:00
---
- name: install dependencies
2015-09-04 00:18:53 +08:00
yum:
name: "{{ item }}"
state: present
with_items: redhat_package_dependencies
when:
ansible_distribution == "RedHat" and
ansible_pkg_mgr == "yum"
- name: install dependencies
yum:
name: "{{ item }}"
state: present
with_items: centos_package_dependencies
when:
ansible_distribution == "CentOS" and
ansible_pkg_mgr == "yum"
- name: install dependencies
dnf:
name: "{{ item }}"
state: present
with_items: centos_package_dependencies
when:
ansible_distribution == "CentOS" and
ansible_pkg_mgr == "dnf"
2014-09-05 03:14:11 +08:00
- name: configure ceph yum repository
include: redhat_ceph_repository.yml
when: ceph_origin == 'upstream'
- name: install ceph
2015-09-04 00:18:53 +08:00
yum:
name: ceph
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
when: not ceph_stable_rh_storage
- name: install distro or red hat storage ceph mon
2015-09-04 00:18:53 +08:00
yum:
name: "{{ item }}"
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
with_items:
- ceph
- ceph-mon
when:
(ceph_origin == "distro" or ceph_stable_rh_storage or
(ceph_stable and ceph_stable_release not in ceph_stable_releases)) and
mon_group_name in group_names and
ansible_pkg_mgr == "yum"
- name: install distro or red hat storage ceph mon
dnf:
name: "{{ item }}"
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
with_items:
- ceph
- ceph-mon
when:
(ceph_origin == "distro" or ceph_stable_rh_storage or
(ceph_stable and ceph_stable_release not in ceph_stable_releases)) and
mon_group_name in group_names and
ansible_pkg_mgr == "dnf"
- name: install distro or red hat storage ceph osd
2015-09-04 00:18:53 +08:00
yum:
name: "{{ item }}"
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
with_items:
- ceph
- ceph-osd
when:
(ceph_origin == "distro" or ceph_stable_rh_storage or
(ceph_stable and ceph_stable_release not in ceph_stable_releases)) and
osd_group_name in group_names and
ansible_pkg_mgr == "yum"
- name: install distro or red hat storage ceph osd
dnf:
name: "{{ item }}"
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
with_items:
- ceph
- ceph-osd
when:
(ceph_origin == "distro" or ceph_stable_rh_storage or
(ceph_stable and ceph_stable_release not in ceph_stable_releases)) and
osd_group_name in group_names and
ansible_pkg_mgr == "dnf"
- name: install ceph-test
yum:
name: ceph-test
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
when:
ceph_test and
ansible_pkg_mgr == "yum"
- name: install ceph-test
dnf:
name: ceph-test
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
when:
ceph_test and
ansible_pkg_mgr == "dnf"
- name: install Inktank Ceph Enterprise RBD Kernel modules
2015-09-04 00:18:53 +08:00
yum:
name: "{{ item }}"
with_items:
- "{{ ceph_stable_ice_temp_path }}/kmod-libceph-{{ ceph_stable_ice_kmod }}.rpm"
- "{{ ceph_stable_ice_temp_path }}/kmod-rbd-{{ ceph_stable_ice_kmod }}.rpm"
when:
ceph_stable_ice and
ansible_pkg_mgr == "yum"
- name: install Inktank Ceph Enterprise RBD Kernel modules
dnf:
name: "{{ item }}"
with_items:
- "{{ ceph_stable_ice_temp_path }}/kmod-libceph-{{ ceph_stable_ice_kmod }}.rpm"
- "{{ ceph_stable_ice_temp_path }}/kmod-rbd-{{ ceph_stable_ice_kmod }}.rpm"
when:
ceph_stable_ice and
ansible_pkg_mgr == "dnf"
- name: install rados gateway
2015-09-04 00:18:53 +08:00
yum:
name: ceph-radosgw
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
when:
rgw_group_name in group_names and
ansible_pkg_mgr == "yum"
- name: install rados gateway
dnf:
name: ceph-radosgw
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
when:
rgw_group_name in group_names and
ansible_pkg_mgr == "dnf"