]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
do not update Debian cache when package-install is disabled
authorinsatomcat <insatomcat@users.noreply.github.com>
Wed, 30 Mar 2022 13:48:02 +0000 (15:48 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 31 Mar 2022 13:28:44 +0000 (15:28 +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, which makes the playbook fail.
This change prevents the playbook to try to update the cache when the package-install tag is skipped.

Signed-off-by: Florent CARLI <florent.carli@rte-france.com>
roles/ceph-infra/tasks/main.yml

index e9620327b69c5b2857d06608003c279396b4c4ac..8172dc014a59c8f8fb1d05ecf84579497ebb7bfe 100644 (file)
@@ -5,6 +5,7 @@
   when: ansible_facts['os_family'] == "Debian"
   register: result
   until: result is succeeded
+  tags: package-install
 
 - name: include_tasks configure_firewall.yml
   include_tasks: configure_firewall.yml