---
dependencies:
  - role: download
    file: "{{ downloads.hyperkube }}"
  - role: download
    file: "{{ downloads.pod_infra }}"
  - role: kubernetes/secrets
  - role: download
    file: "{{ downloads.nginx }}"
    when: is_kube_master == false and loadbalancer_apiserver_localhost|default(false)
  - role: download
    file: "{{ downloads.testbox }}"
  - role: download
    file: "{{ downloads.kubednsmasq }}"
    when: not skip_dnsmasq_k8s|default(false)
  - role: download
    file: "{{ downloads.kubedns }}"
    when: not skip_dnsmasq_k8s|default(false)
  - role: download
    file: "{{ downloads.exechealthz }}"
    when: not skip_dnsmasq_k8s|default(false)

---
dependencies:
  - role: download
    file: "{{ downloads.hyperkube }}"
  - role: download
    file: "{{ downloads.pod_infra }}"
  - role: kubernetes/secrets
  - role: download
    file: "{{ downloads.nginx }}"
  - role: download
    file: "{{ downloads.testbox }}"
  - role: download
    file: "{{ downloads.kubednsmasq }}"
    when: not skip_dnsmasq_k8s|default(false)
  - role: download
    file: "{{ downloads.kubedns }}"
    when: not skip_dnsmasq_k8s|default(false)
  - role: download
    file: "{{ downloads.exechealthz }}"
    when: not skip_dnsmasq_k8s|default(false)

Fix nginx container download for download_run_once mode
Fix nginx container download for download_run_once mode

W/o this patch, the "Download containers" task may be skipped
when running on the delegate node due to wrong "when" confition.
Then it fails to upload nginx image to the nodes as well.

Fix download nginx dependency so it always can be pushed to
nodes when download_run_once is enabled.

Signed-off-by: Bogdan Dobrelya <0b23cd1e586d5f091fecb3391314c2b9ec1fd641@mirantis.com>
