2017-08-03 21:30:25 +08:00
|
|
|
---
|
|
|
|
- name: install redhat dependencies
|
|
|
|
package:
|
2017-10-12 01:18:12 +08:00
|
|
|
name: "{{ redhat_package_dependencies }}"
|
2017-08-03 21:30:25 +08:00
|
|
|
state: present
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
|
|
|
- ansible_distribution == 'RedHat'
|
2017-08-03 21:30:25 +08:00
|
|
|
|
|
|
|
- name: install centos dependencies
|
2017-10-09 23:10:39 +08:00
|
|
|
yum:
|
2017-10-12 01:18:12 +08:00
|
|
|
name: "{{ centos_package_dependencies }}"
|
2017-08-03 21:30:25 +08:00
|
|
|
state: present
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
|
|
|
- ansible_distribution == 'CentOS'
|
2017-08-03 21:30:25 +08:00
|
|
|
|
2018-04-06 03:40:15 +08:00
|
|
|
- name: install redhat ceph-test package
|
|
|
|
package:
|
|
|
|
name: ceph-test
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
when:
|
|
|
|
- ceph_test
|
|
|
|
|
2017-08-03 21:30:25 +08:00
|
|
|
- name: install redhat ceph-common
|
|
|
|
package:
|
|
|
|
name: "ceph-common"
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
|
|
|
|
- name: install redhat ceph-mon package
|
|
|
|
package:
|
|
|
|
name: "ceph-mon"
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
when:
|
|
|
|
- mon_group_name in group_names
|
|
|
|
|
|
|
|
- name: install redhat ceph-osd package
|
|
|
|
package:
|
|
|
|
name: "ceph-osd"
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
when:
|
|
|
|
- osd_group_name in group_names
|
|
|
|
|
|
|
|
- name: install redhat ceph-fuse package
|
|
|
|
package:
|
|
|
|
name: "ceph-fuse"
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
when:
|
|
|
|
- client_group_name in group_names
|
|
|
|
|
|
|
|
- name: install redhat ceph-base package
|
|
|
|
package:
|
|
|
|
name: "ceph-base"
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
when:
|
|
|
|
- client_group_name in group_names
|
|
|
|
|
|
|
|
- name: install redhat ceph-radosgw package
|
|
|
|
package:
|
|
|
|
name: ceph-radosgw
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
|
|
|
- rgw_group_name in group_names
|