From 539fee84a13763e049967902d7837cec8ade9951 Mon Sep 17 00:00:00 2001 From: insatomcat Date: Wed, 16 Aug 2023 15:51:03 +0200 Subject: [PATCH] do not use update debian cache or try to install packages when package-install is disabled When deploying with --skip-tags=package-install (when there is no access to a repository), the playbook is still trying to update the package cache, or to install ceph-mgr packages, which makes the playbook fail. This change prevents the playbook to try to update the cache or install ceph-mgr packages when the package-install tag is skipped. Signed-off-by: Florent CARLI (cherry picked from commit 271fd8294296efe42f4e4d98032b4f8aac8ff654) --- roles/ceph-common/tasks/configure_repository.yml | 1 + roles/ceph-mgr/tasks/pre_requisite.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/roles/ceph-common/tasks/configure_repository.yml b/roles/ceph-common/tasks/configure_repository.yml index 0f7d7b2bd..711c62908 100644 --- a/roles/ceph-common/tasks/configure_repository.yml +++ b/roles/ceph-common/tasks/configure_repository.yml @@ -23,6 +23,7 @@ cache_valid_time: 3600 register: result until: result is succeeded + tags: package-install - name: include installs/configure_suse_repository_installation.yml include_tasks: installs/configure_suse_repository_installation.yml diff --git a/roles/ceph-mgr/tasks/pre_requisite.yml b/roles/ceph-mgr/tasks/pre_requisite.yml index d479c9eef..317a389aa 100644 --- a/roles/ceph-mgr/tasks/pre_requisite.yml +++ b/roles/ceph-mgr/tasks/pre_requisite.yml @@ -34,3 +34,4 @@ register: result until: result is succeeded when: ansible_facts['os_family'] == 'Debian' + tags: package-install