From e0e9bb33b1a11c8d4046b01276dcfcbe1c93e6f1 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Sat, 12 Aug 2017 17:41:44 +0200 Subject: [PATCH] common: install ceph-common on all nodes This commits force ceph-common to be installed early in deployment on nodes. For instance, ceph-rbdmirror doesn't have the CLI installed while it is needed for some tasks which uses it to set some facts. Signed-off-by: Guillaume Abrioux --- roles/ceph-common/tasks/installs/install_on_debian.yml | 5 +++++ roles/ceph-common/tasks/installs/install_on_redhat.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/roles/ceph-common/tasks/installs/install_on_debian.yml b/roles/ceph-common/tasks/installs/install_on_debian.yml index 54b1ef2f4..00f5eb6ee 100644 --- a/roles/ceph-common/tasks/installs/install_on_debian.yml +++ b/roles/ceph-common/tasks/installs/install_on_debian.yml @@ -29,6 +29,11 @@ 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 apt: pkg: radosgw diff --git a/roles/ceph-common/tasks/installs/install_on_redhat.yml b/roles/ceph-common/tasks/installs/install_on_redhat.yml index e6129f845..55b0bd4af 100644 --- a/roles/ceph-common/tasks/installs/install_on_redhat.yml +++ b/roles/ceph-common/tasks/installs/install_on_redhat.yml @@ -75,6 +75,11 @@ when: - ceph_origin == 'local' +- name: install ceph-common + package: + name: 'ceph-common' + state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" + - name: install distro or red hat storage ceph mon package: name: "ceph-mon"