mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2024-04-25 18:01
This commit is contained in:
@@ -18,8 +18,12 @@
|
||||
- name: Install babashka binary
|
||||
copy:
|
||||
src: /tmp/bb
|
||||
dest: /usr/local/bin/bb
|
||||
dest: /usr/local/bin/bb.real
|
||||
remote_src: True
|
||||
mode: 755
|
||||
|
||||
tags: bb
|
||||
|
||||
- name: Install Babashka wrapper for proxy support
|
||||
template: src=bb.j2 dest=/usr/local/bin/bb mode=755
|
||||
tags: bb
|
||||
|
7
roles/babashka/templates/bb.j2
Normal file
7
roles/babashka/templates/bb.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
exec /usr/local/bin/bb.real \
|
||||
{% if system_proxy is defined and system_proxy != '' %}
|
||||
-Dhttp.proxyHost={{ system_proxy | urlsplit('hostname') }} -Dhttp.proxyPort={{ system_proxy | urlsplit('port') }} -Dhttps.proxyHost={{ system_proxy | urlsplit('hostname') }} -Dhttps.proxyPort={{ system_proxy | urlsplit('port') }} \
|
||||
{% endif %}
|
||||
$@
|
Reference in New Issue
Block a user