Skip to content

Commit 2b760af

Browse files
committed
unixPB: improves download and verify of ant binary
by replacing `command: wget` with `get_url` module, it helps to support more systems. Also while running `GPG Signature verification` some systems (e.g old mac machines) have problem with wget while running `package_signature_verification.sh`. This change makes sure all systems will find wget in their `PATH`. Sigend-off-by: [email protected]
1 parent d483066 commit 2b760af

File tree

1 file changed

+5
-1
lines changed
  • ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/ant/tasks

1 file changed

+5
-1
lines changed

ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/ant/tasks/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
tags: ant
3030

3131
- name: Download Apache Ant binaries (macOS) and (Solaris)
32-
command: wget https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.5-bin.zip -O /tmp/apache-ant-1.10.5-bin.zip
32+
get_url:
33+
url: https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.5-bin.zip
34+
dest: /tmp/apache-ant-1.10.5-bin.zip
3335
when:
3436
- ant_installed.rc != 0
3537
- ansible_distribution == "MacOSX" or ansible_distribution == "Solaris"
@@ -46,6 +48,8 @@
4648
- name: GPG Signature verification
4749
script: ../Supporting_Scripts/package_signature_verification.sh -f /tmp/apache-ant-1.10.5-bin.zip -sl "https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.5-bin.zip.asc" -k {{ key.apache_ant }}
4850
when: ant_installed.rc != 0
51+
environment:
52+
PATH: "{{ ansible_env.PATH }}:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin"
4953
tags: ant
5054

5155
- name: Extract ant

0 commit comments

Comments
 (0)