From 9b7c79572af0bc438d137dde24c16c8e7aa45247 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Thu, 12 Apr 2018 11:00:17 +0200 Subject: [PATCH] Do not delegate to omit delegate_to should never delegate to omit, as omit is only intended for task argument's values. More explanations of the reasons can be found in the bug. Change-Id: Ic00c5d6eeee8858a7bc6bd47a95782374eedb944 Closes-Bug: #1763300 --- tasks/haproxy_install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/haproxy_install.yml b/tasks/haproxy_install.yml index 0e61539..32cf160 100644 --- a/tasks/haproxy_install.yml +++ b/tasks/haproxy_install.yml @@ -28,7 +28,7 @@ file: path: "{{ haproxy_hatop_download_path }}" state: directory - delegate_to: "{{ (haproxy_hatop_downloader == 'deployment-host') | ternary('localhost', omit) }}" + delegate_to: "{{ (haproxy_hatop_downloader == 'deployment-host') | ternary('localhost', inventory_hostname) }}" - name: Download extra package get_url: @@ -39,7 +39,7 @@ until: fetch_url | success retries: 3 delay: 10 - delegate_to: "{{ (haproxy_hatop_downloader == 'deployment-host') | ternary('localhost', omit) }}" + delegate_to: "{{ (haproxy_hatop_downloader == 'deployment-host') | ternary('localhost', inventory_hostname) }}" - name: Unarchive HATop unarchive: