Skip to content

Commit

Permalink
unixPB: improves download and verify of ant binary
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
mahdipub committed Dec 5, 2024
1 parent 028773c commit dceb54b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
tags: ant

- name: Download Apache Ant binaries (macOS) and (Solaris)
command: wget https://archive.apache.org/dist/ant/binaries/apache-ant-{{ ant_version }}-bin.zip -O /tmp/apache-ant-{{ ant_version }}-bin.zip
get_url:
url: https://archive.apache.org/dist/ant/binaries/apache-ant-{{ ant_version }}-bin.zip
dest: /tmp/apache-ant-{{ ant_version }}-bin.zip
when:
- ant_installed.rc != 0
- ansible_distribution == "MacOSX" or ansible_distribution == "Solaris"
Expand All @@ -47,6 +49,8 @@
- name: GPG Signature verification
script: ../Supporting_Scripts/package_signature_verification.sh -f /tmp/apache-ant-{{ ant_version }}-bin.zip -sl "https://archive.apache.org/dist/ant/binaries/apache-ant-{{ ant_version }}-bin.zip.asc" -k {{ key.apache_ant }}
when: ant_installed.rc != 0
environment:
PATH: "{{ ansible_env.PATH }}:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin"
tags: ant

- name: Extract ant
Expand Down

0 comments on commit dceb54b

Please sign in to comment.