cleanup: don't update_cache when adding a new repo

We don't need to update_cache when we add a new repo because
we already do it when we install the package in the follow up task.

Change-Id: I1c32655eddee6c37d7433e6aca8be851344e93e4
This commit is contained in:
Mohammed Naser 2018-12-29 17:47:37 -05:00
parent f2baa61923
commit d8e1f4d83c
1 changed files with 0 additions and 13 deletions

View File

@ -52,18 +52,5 @@
repo: "{{ galera_client_repo }}"
filename: "{{ mariadb_repo_filename }}"
state: present
update_cache: no
register: add_repo
tags:
- galera-client-repos
- name: Update Apt cache
apt:
update_cache: yes
when: add_repo is changed
register: update_apt_cache
until: update_apt_cache is success
retries: 5
delay: 2
tags:
- galera-client-repos