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: Ief2fecbc266adcc816336b601253d3e90c39c32b
Closes-Bug: #1763300
(cherry picked from commit f451c1a3e2)
This commit is contained in:
Jean-Philippe Evrard 2018-04-12 11:02:27 +02:00 committed by Jesse Pretorius (odyssey4me)
parent a2d58a02ed
commit f73b0dbebf
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@
until: fetch_url | success
retries: 6
delay: 5
delegate_to: "{{ (tempest_image_downloader == 'deployment-host') | ternary('localhost', omit) }}"
delegate_to: "{{ (tempest_image_downloader == 'deployment-host') | ternary('localhost', inventory_hostname) }}"
- name: Copy download images from deployment-host to target-host
copy: