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
This commit is contained in:
Jean-Philippe Evrard 2018-04-12 11:00:17 +02:00
parent 04a934cfd6
commit 9b7c79572a
1 changed files with 2 additions and 2 deletions

View File

@ -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: