Move inline shell into script files (#4604)

This commit is contained in:
Maxime Guyot
2019-04-23 22:36:03 +02:00
committed by Kubernetes Prow Robot
parent d89ecb8308
commit 228b244c84
5 changed files with 83 additions and 146 deletions

View File

@@ -67,14 +67,14 @@
with_items: "{{pod_ips}}"
- name: Ping between pods is working
shell: "{{bin_dir}}/kubectl exec {{item[0]}} -- ping -c 4 {{ item[1] }}"
shell: "{{bin_dir}}/kubectl -n test exec {{item[0]}} -- ping -c 4 {{ item[1] }}"
when: not item[0] in pods_hostnet and not item[1] in pods_hostnet
with_nested:
- "{{pod_names}}"
- "{{pod_ips}}"
- name: Ping between hostnet pods is working
shell: "{{bin_dir}}/kubectl exec {{item[0]}} -- ping -c 4 {{ item[1] }}"
shell: "{{bin_dir}}/kubectl -n test exec {{item[0]}} -- ping -c 4 {{ item[1] }}"
when: item[0] in pods_hostnet and item[1] in pods_hostnet
with_nested:
- "{{pod_names}}"