Avoid using get_url remotely

Fetch from the deploy node and unarchiving from it will speed up things
and also avoid urllib3 on the remote node.

Change-Id: I9c480a338fa7ff0d41a01b02b92967910a461408
Signed-off-by: Jean-Philippe Evrard <jean-philippe@evrard.me>
This commit is contained in:
Jean-Philippe Evrard 2017-02-28 18:56:05 +00:00
parent 5eaa763ec7
commit 477bce121a

View File

@ -14,10 +14,12 @@
# limitations under the License.
- name: Download HATop
get_url:
local_action:
module: get_url
url: "{{ haproxy_hatop_download_url }}"
dest: "/var/cache/{{ haproxy_hatop_download_url | basename }}"
force: yes
run_once: True
- name: Create HATop directory
file:
@ -28,7 +30,6 @@
unarchive:
src: "/var/cache/{{ haproxy_hatop_download_url | basename }}"
dest: "/opt"
copy: "no"
- name: Install HATop
command: "install -m 755 bin/hatop /usr/local/bin"