]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: update apt cache on debian before installing kerberos packages
authorAndrew Schoen <aschoen@redhat.com>
Tue, 8 Sep 2015 14:42:22 +0000 (09:42 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 8 Sep 2015 14:42:22 +0000 (09:42 -0500)
Without updating the apt cache, debian jessie can not find the package
krb5-user.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/common/tasks/kerberos.yml

index 9dcf55fa62657f4e80de410e6a80880222ddfe7c..c90f285d933cf4bb5a09a7dc975672e684e0684c 100644 (file)
@@ -7,6 +7,17 @@
     state: present
   when: ansible_distribution == 'RedHat'
 
+- name: Update apt cache.
+  apt:
+    update_cache: yes
+  # Register and retry to work around transient http issues
+  register: apt_cache_update
+  until: apt_cache_update|success
+  # try for 2 minutes before failing
+  retries: 24
+  delay: 5
+  when: ansible_distribution == 'Debian'
+
 - name: Install Kerberos Packages (Debian)
   apt:
     name: krb5-user