do not update Debian cache 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, 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>
pull/7134/head
insatomcat 2022-03-30 15:48:02 +02:00 committed by Guillaume Abrioux
parent 72e4654aae
commit 58fdc03e63
1 changed files with 1 additions and 0 deletions

View 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