]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
do not use update debian cache or try to install packages when package-install is...
authorinsatomcat <insatomcat@users.noreply.github.com>
Wed, 16 Aug 2023 13:51:03 +0000 (15:51 +0200)
committerTeoman ONAY <tonay@redhat.com>
Mon, 21 Aug 2023 12:01:15 +0000 (14:01 +0200)
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 <florent.carli@rte-france.com>
roles/ceph-common/tasks/configure_repository.yml
roles/ceph-mgr/tasks/pre_requisite.yml

index 0f7d7b2bde1d676b3701f2eca1efb0ab01e37c1f..711c62908ae1d20216a6fb092c59287cf0b998b9 100644 (file)
@@ -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
index d479c9eef3f9fa440fc7f376065ba5018171f7f1..317a389aa4aa6dfa7bb6f8ac2ca124b51e568c06 100644 (file)
@@ -34,3 +34,4 @@
   register: result
   until: result is succeeded
   when: ansible_facts['os_family'] == 'Debian'
+  tags: package-install