]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
Move apt cache update to individual task per role
authorAndy McCrae <andy.mccrae@gmail.com>
Thu, 26 Apr 2018 09:42:11 +0000 (10:42 +0100)
committerSébastien Han <seb@redhat.com>
Thu, 3 May 2018 12:02:15 +0000 (14:02 +0200)
commitd142be0422a2284bb53ffc76e99ef572119a2a45
tree4d6751614e88594a9406d24ac45cb36c10184d18
parent6fe8df627b8e4b89227e90937c847b49587d6ab6
Move apt cache update to individual task per role

The apt-cache update can fail due to transient issues related to the
action being a network operation. To reduce the impact of these
transient failures this patch adds a retry to the update_cache task.

However, the apt_repository tasks which would perform an apt_update
won't retry the apt_update on a failure in the same way, as such this PR
moves the apt_update into an individual task, once per role.

Finally, the apt_repository tasks no longer have a changed_when: false,
and the apt_cache update is only performed once per role, if the
repositories change. Otherwise the cache is updated on the "apt" install
tasks if the cache_timeout has been reached.
roles/ceph-common/tasks/installs/debian_community_repository.yml
roles/ceph-common/tasks/installs/debian_custom_repository.yml
roles/ceph-common/tasks/installs/debian_dev_repository.yml
roles/ceph-common/tasks/installs/debian_uca_repository.yml
roles/ceph-common/tasks/installs/install_on_debian.yml
roles/ceph-common/tasks/installs/prerequisite_rhcs_cdn_install_debian.yml
roles/ceph-common/tasks/installs/prerequisite_rhcs_iso_install_debian.yml
roles/ceph-docker-common/tasks/pre_requisites/debian_prerequisites.yml
roles/ceph-nfs/tasks/pre_requisite_non_container.yml