From 3be357eb08dc1ae391090e34a24ffb35f8c3ded3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20D=C3=A4twyler?= <9570377+droidben@users.noreply.github.com> Date: Wed, 10 Jul 2024 20:47:33 +0200 Subject: [PATCH] added lvm2 to infra packages fixed conditionals for installing prerequisites fixed installing client prerequisites MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ben Dätwyler --- ceph_defaults/defaults/main.yml | 1 + cephadm-preflight.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ceph_defaults/defaults/main.yml b/ceph_defaults/defaults/main.yml index d532042..a3b5c31 100644 --- a/ceph_defaults/defaults/main.yml +++ b/ceph_defaults/defaults/main.yml @@ -20,5 +20,6 @@ ceph_client_pkgs: infra_pkgs: - chrony - podman + - lvm2 - sos client_group: clients diff --git a/cephadm-preflight.yml b/cephadm-preflight.yml index 617f740..88c58e7 100644 --- a/cephadm-preflight.yml +++ b/cephadm-preflight.yml @@ -171,7 +171,7 @@ command: dnf config-manager --set-enabled "{{ 'powertools' if ansible_facts['distribution_major_version'] == '8' else 'crb' }}" changed_when: false - - name: install package + - name: install epel package package: name: epel-release state: present @@ -205,7 +205,7 @@ state: "{{ (upgrade_ceph_packages | bool) | ternary('latest', 'present') }}" register: result until: result is succeeded - when: group_names == [client_group] + when: client_group in group_names - name: ensure chronyd is running