diff --git a/tests/testcases/015_check-nodes-ready.yml b/tests/testcases/015_check-nodes-ready.yml index 778417f10a0..536207211bf 100644 --- a/tests/testcases/015_check-nodes-ready.yml +++ b/tests/testcases/015_check-nodes-ready.yml @@ -1,18 +1,10 @@ --- - name: Testcases checking nodes hosts: kube_control_plane[0] + vars: + bin_dir: /usr/local/bin tasks: - - name: Force binaries directory for Flatcar Container Linux by Kinvolk - set_fact: - bin_dir: "/opt/bin" - when: ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"] - - - name: Force binaries directory for other hosts - set_fact: - bin_dir: "/usr/local/bin" - when: not ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"] - - import_role: # noqa name[missing] name: cluster-dump diff --git a/tests/testcases/020_check-pods-running.yml b/tests/testcases/020_check-pods-running.yml index f25e2b7a46f..a573bb1cc7c 100644 --- a/tests/testcases/020_check-pods-running.yml +++ b/tests/testcases/020_check-pods-running.yml @@ -1,18 +1,10 @@ --- - name: Testcases checking pods hosts: kube_control_plane[0] + vars: + bin_dir: /usr/local/bin tasks: - - name: Force binaries directory for Flatcar Container Linux by Kinvolk - set_fact: - bin_dir: "/opt/bin" - when: ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"] - - - name: Force binaries directory for other hosts - set_fact: - bin_dir: "/usr/local/bin" - when: not ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"] - - import_role: # noqa name[missing] name: cluster-dump diff --git a/tests/testcases/030_check-network.yml b/tests/testcases/030_check-network.yml index 7c5058a9f02..5e6eebae8f9 100644 --- a/tests/testcases/030_check-network.yml +++ b/tests/testcases/030_check-network.yml @@ -4,17 +4,9 @@ vars: test_image_repo: registry.k8s.io/e2e-test-images/agnhost test_image_tag: "2.40" + bin_dir: "/usr/local/bin" tasks: - - name: Force binaries directory for Flatcar Container Linux by Kinvolk - set_fact: - bin_dir: "/opt/bin" - when: ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"] - - - name: Force binaries directory for other hosts - set_fact: - bin_dir: "/usr/local/bin" - when: not ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"] - name: Check kubelet serving certificates approved with kubelet_csr_approver when: diff --git a/tests/testcases/040_check-network-adv.yml b/tests/testcases/040_check-network-adv.yml index f9f21a73bfa..091025b13a4 100644 --- a/tests/testcases/040_check-network-adv.yml +++ b/tests/testcases/040_check-network-adv.yml @@ -19,18 +19,9 @@ agent_report_interval: 10 netcheck_namespace: default netchecker_port: 31081 + bin_dir: "/usr/local/bin" tasks: - - name: Force binaries directory for Container Linux by CoreOS and Flatcar - set_fact: - bin_dir: "/opt/bin" - when: ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"] - - - name: Force binaries directory on other hosts - set_fact: - bin_dir: "/usr/local/bin" - when: not ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"] - - import_role: # noqa name[missing] name: cluster-dump