Skip to content

Commit

Permalink
do not use update debian cache or try to install packages when packag…
Browse files Browse the repository at this point in the history
…e-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 <[email protected]>
(cherry picked from commit 271fd82)
  • Loading branch information
insatomcat authored and asm0deuz committed Aug 22, 2023
1 parent 10c7fd7 commit 539fee8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/ceph-common/tasks/configure_repository.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions roles/ceph-mgr/tasks/pre_requisite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@
register: result
until: result is succeeded
when: ansible_facts['os_family'] == 'Debian'
tags: package-install

0 comments on commit 539fee8

Please sign in to comment.