diff options
author | Luke Meyer <lmeyer@redhat.com> | 2017-11-28 15:46:50 -0500 |
---|---|---|
committer | Luke Meyer <lmeyer@redhat.com> | 2017-11-30 16:45:20 -0500 |
commit | fbb4e1ca73fd39ce9f18fa7c6f05766ccb0e484a (patch) | |
tree | 12ebe3c443f4f0a0af48a7afd2831d2f5dfb7b1c /playbooks/init | |
parent | fdf3edec3f880d21e19e2007065be3ed0ed59a13 (diff) | |
download | openshift-fbb4e1ca73fd39ce9f18fa7c6f05766ccb0e484a.tar.gz openshift-fbb4e1ca73fd39ce9f18fa7c6f05766ccb0e484a.tar.bz2 openshift-fbb4e1ca73fd39ce9f18fa7c6f05766ccb0e484a.tar.xz openshift-fbb4e1ca73fd39ce9f18fa7c6f05766ccb0e484a.zip |
retry package operations
When a package install/update fails due to network blips or other spotty
availability, retry it. If the failure is a real failure (e.g. package
is really not there) it still fails after 3 tries (Ansible default).
Diffstat (limited to 'playbooks/init')
-rw-r--r-- | playbooks/init/facts.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/playbooks/init/facts.yml b/playbooks/init/facts.yml index 05142f9b6..1166ac538 100644 --- a/playbooks/init/facts.yml +++ b/playbooks/init/facts.yml @@ -84,6 +84,8 @@ - "{{ 'python3-dbus' if ansible_distribution == 'Fedora' else 'dbus-python' }}" - "{{ 'python3-PyYAML' if ansible_distribution == 'Fedora' else 'PyYAML' }}" - yum-utils + register: result + until: result | success - name: Ensure various deps for running system containers are installed package: @@ -100,6 +102,8 @@ or (openshift_use_openvswitch_system_container | default(False)) | bool or (openshift_use_node_system_container | default(False)) | bool or (openshift_use_master_system_container | default(False)) | bool + register: result + until: result | success - name: Gather Cluster facts and set is_containerized if needed openshift_facts: |