Skip to content

Commit

Permalink
UnixPB: Added retries to roles that often fail (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
Willsparker authored and Haroon-Khel committed Dec 13, 2019
1 parent 3e7bae7 commit 29ce5a6
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
url: https://www.kernel.org/pub/software/scm/git/git-2.15.0.tar.xz
dest: /tmp/git-2.15.0.tar.xz
mode: 0440
retries: 3
delay: 5
register: git_download
until: git_download is not failed
when:
- (git_installed.rc != 0 ) or (git_installed.rc == 0 and git_version.stdout is version_compare('2.15', operator='lt') )
- ansible_distribution != "FreeBSD"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
get_url:
url: "https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda_9.0.176_384.81_linux-run"
dest: "/tmp/cuda9_linux-run"
retries: 3
delay: 5
register: nvidia_cuda_toolkit_download
until: nvidia_cuda_toolkit_download is not failed
when:
- cuda_installed.stat.isdir is not defined
- (ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "16") or (ansible_distribution == "RedHat" and (ansible_distribution_major_version == "6" or ansible_distribution_major_version == "7")) or (ansible_distribution == "CentOS" and (ansible_distribution_major_version == "6" or ansible_distribution_major_version == "7") )
Expand Down Expand Up @@ -39,6 +43,10 @@
get_url:
url: https://developer.download.nvidia.com/compute/cuda/repos/rhel7/ppc64le/cuda-repo-rhel7-9.0.176-1.ppc64le.rpm
dest: /tmp/cuda-repo-rhel7-9.ppc64le.rpm
retries: 3
delay: 5
register: nvidia_cuda_toolkit_download
until: nvidia_cuda_toolkit_download is not failed
when:
- cuda_installed.stat.isdir is not defined
- ( ansible_distribution == "RedHat" or ansible_distribution == "CentOS" )
Expand Down Expand Up @@ -70,6 +78,10 @@
get_url:
url: https://developer.download.nvidia.com/compute/cuda/repos/sles122/x86_64/cuda-repo-sles122-9.0.176-1.x86_64.rpm
dest: /tmp/sles12_cuda9_repo.rpm
retries: 3
delay: 5
register: nvidia_cuda_toolkit_download
until: nvidia_cuda_toolkit_download is not failed
when:
- cuda_installed.stat.islnk is not defined
- ansible_architecture == "x86_64"
Expand Down Expand Up @@ -106,6 +118,10 @@
- name: Download/install Nvidia CUDA Repo deb - Ubuntu 16 on PPC64LE
apt:
deb: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/ppc64el/cuda-toolkit-9-0_9.0.176-1_ppc64el.deb
retries: 3
delay: 5
register: nvidia_cuda_toolkit_download
until: nvidia_cuda_toolkit_download is not failed
when:
- (ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "16")
- ansible_architecture == "ppc64le"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
src: https://api.adoptopenjdk.net/v2/binary/releases/openjdk{{ jdk_version }}?openjdk_impl={{ bootjdk }}&os=linux&arch=x64&heap_size=normal&release=latest&type=jdk
dest: /usr/lib/jvm
remote_src: yes
retries: 3
delay: 5
register: adoptopenjdk_download
until: adoptopenjdk_download is not failed
when:
- adoptopenjdk_installed.rc != 0
- ansible_architecture == "x86_64"
Expand All @@ -45,6 +49,10 @@
src: https://api.adoptopenjdk.net/v2/binary/releases/openjdk{{ jdk_version }}?openjdk_impl={{ bootjdk }}&os=linux&arch=s390x&release=latest&type=jdk
dest: /usr/lib/jvm
remote_src: yes
retries: 3
delay: 5
register: adoptopenjdk_download
until: adoptopenjdk_download is not failed
when:
- adoptopenjdk_installed.rc != 0
- ansible_architecture == "s390x"
Expand All @@ -55,6 +63,10 @@
src: https://api.adoptopenjdk.net/v2/binary/releases/openjdk{{ jdk_version }}?openjdk_impl={{ bootjdk }}&os=linux&arch=ppc64le&release=latest&type=jdk
dest: /usr/lib/jvm
remote_src: yes
retries: 3
delay: 5
register: adoptopenjdk_download
until: adoptopenjdk_download is not failed
when:
- adoptopenjdk_installed.rc != 0
- ansible_architecture == "ppc64le"
Expand All @@ -65,6 +77,10 @@
src: https://api.adoptopenjdk.net/v2/binary/releases/openjdk{{ jdk_version }}?openjdk_impl=hotspot&os=linux&arch=aarch64&release=latest&type=jdk
dest: /usr/lib/jvm
remote_src: yes
retries: 3
delay: 5
register: adoptopenjdk_download
until: adoptopenjdk_download is not failed
when:
- adoptopenjdk_installed.rc != 0
- ansible_architecture == "aarch64"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
mode: 0440
timeout: 25
validate_certs: no
retries: 3
delay: 5
register: curl_download
until: curl_download is not failed
when:
- ((curl_version.stdout == '') or ((curl_version.stdout != '') and (curl_version.stdout is version_compare('7.20.0', operator='lt', strict=True))))
tags: curl
Expand Down

0 comments on commit 29ce5a6

Please sign in to comment.