]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commit
testnode: retry when updating the apt cache to handle http errors 124/head
authorAndrew Schoen <aschoen@redhat.com>
Tue, 1 Sep 2015 15:02:19 +0000 (10:02 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 1 Sep 2015 15:02:19 +0000 (10:02 -0500)
commitf8065298c21611b6210eec280c4ae4193fd3bfda
tree2a2b32102b09e8bcbe205638461588317d747c96
parent36a181f90b6200c8ffdd18ae43f3b9a77e0b7cd9
testnode: retry when updating the apt cache to handle http errors

When updating the apt cache we have to make an http call out to
gitbuilder, if gitbuilder fails for whatever reason we should retry
before failing the playbook.

Also, this removes a 'changed_when: false' on 'Add local apt repos'.
We check it's 'changed' status to know if we need update the cache or
not. We only added that 'changed_when' to avoid seeing this task being
changed each time (because it will always change), but we actually need
that value set correctly because we use it in the 'when' clause of the
updating apt cache stanza.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/testnode/tasks/apt/repos.yml