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

73 lines
2.4 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
apt:
name: "{{ item }}"
2015-09-04 00:18:53 +08:00
state: present
update_cache: yes
cache_valid_time: 3600
with_items: "{{ debian_package_dependencies }}"
2014-09-05 03:14:11 +08:00
2015-08-31 20:23:20 +08:00
- name: configure ceph apt repository
include: debian_ceph_repository.yml
when: ceph_origin == 'upstream'
- name: update apt cache
apt:
update_cache: yes
- name: install ceph
2015-09-04 00:18:53 +08:00
apt:
name: "ceph"
update_cache: no
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
default_release: "{{ ceph_stable_release_uca | default(ansible_distribution_release) }}{{ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
- name: install ceph-test
apt:
pkg: ceph-test
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
default_release: "{{ ceph_stable_release_uca | default(ansible_distribution_release) }}{{ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
when: ceph_test
- name: install ceph-common
package:
name: 'ceph-common'
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
- name: install rados gateway
2015-09-04 00:18:53 +08:00
apt:
pkg: radosgw
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
2015-09-04 00:18:53 +08:00
update_cache: yes
when: rgw_group_name in group_names
- name: install ceph mds
apt:
pkg: ceph-mds
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
default_release: "{{ ceph_stable_release_uca | default(ansible_distribution_release) }}{{ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
when: mds_group_name in group_names
- name: install jemalloc
apt:
pkg: libjemalloc1
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
update_cache: yes
when: nfs_group_name in group_names
- name: install NFS gateway
apt:
pkg: nfs-ganesha-fsal
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
update_cache: yes
when: nfs_group_name in group_names
- name: install ceph mgr
apt:
pkg: ceph-mgr
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
default_release: "{{ ceph_stable_release_uca | default(ansible_distribution_release) }}{{ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
when:
- mgr_group_name in group_names
- ceph_release_num.{{ ceph_release }} > ceph_release_num.jewel