From b7f4e3e7c7d73d931fd7fec4c940384c890dee42 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Mon, 11 Mar 2019 10:44:47 -0400 Subject: [PATCH] ceph-osd: Install numactl package when needed With 3e32dce we can run OSD containers with numactl support. When using numactl command in a containerized deployment we need to be sure that the corresponding package is installed on the host. The package installation is only executed when the ceph_osd_numactl_opts variable isn't empty. Signed-off-by: Dimitri Savineau --- roles/ceph-osd/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roles/ceph-osd/tasks/main.yml b/roles/ceph-osd/tasks/main.yml index 082109d10..139b6bbd6 100644 --- a/roles/ceph-osd/tasks/main.yml +++ b/roles/ceph-osd/tasks/main.yml @@ -12,6 +12,17 @@ - not containerized_deployment - ansible_os_family != 'ClearLinux' +- name: install numactl when needed + package: + name: numactl + register: result + until: result is succeeded + when: + - containerized_deployment + - ceph_osd_numactl_opts != "" + tags: + - with_pkg + - name: include_tasks common.yml include_tasks: common.yml