From 477bce121a326d9b56368938f9604d324be19333 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Tue, 28 Feb 2017 18:56:05 +0000 Subject: [PATCH] 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 --- tasks/haproxy_install_hatop.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/haproxy_install_hatop.yml b/tasks/haproxy_install_hatop.yml index e4c4439..737b2bc 100644 --- a/tasks/haproxy_install_hatop.yml +++ b/tasks/haproxy_install_hatop.yml @@ -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"