Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unixPB: improves Ant-Contrib role compatibility #3753

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,9 @@
tags: ant-contrib

- name: Download ant-contrib (macOS) and (Solaris)
command: wget https://sourceforge.net/projects/ant-contrib/files/ant-contrib/ant-contrib-{{ antContribVersion }}/ant-contrib-{{ antContribVersion }}-bin.tar.gz -O /tmp/ant-contrib-{{ antContribVersion }}-bin.tar.gz
retries: 3
delay: 5
register: antContrib_download
until: antContrib_download is not failed
get_url:
url: https://sourceforge.net/projects/ant-contrib/files/ant-contrib/ant-contrib-{{ antContribVersion }}/ant-contrib-{{ antContribVersion }}-bin.tar.gz?viasf=1
dest: /tmp/ant-contrib-{{ antContribVersion }}-bin.tar.gz
when:
- not antcontrib_status.stat.exists
- ansible_distribution == "MacOSX" or ansible_distribution == "Solaris"
Expand All @@ -84,7 +82,16 @@
src: /tmp/ant-contrib-{{ antContribVersion }}-bin.tar.gz
dest: /tmp/
copy: False
when: not antcontrib_status.stat.exists
when:
- not antcontrib_status.stat.exists
- ansible_distribution != "MacOSX"
tags: ant-contrib

- name: Extract ant-contrib MACOS
command: tar -xvf /tmp/ant-contrib-{{ antContribVersion }}-bin.tar.gz -C /tmp
when:
- not antcontrib_status.stat.exists
- ansible_distribution == "MacOSX"
tags: ant-contrib

- name: Move ant-contrib.jar to ant lib folder
Expand Down
Loading