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:
parent
04a934cfd6
commit
9b7c79572a
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user