Jelajahi Sumber

fix tool checks

Grega Bremec 2 tahun lalu
induk
melakukan
05c7e8277e
2 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 3 3
      roles/check-env/tasks/main.yml
  2. 1 1
      roles/check-env/vars/main.yml

+ 3 - 3
roles/check-env/tasks/main.yml

@@ -2,13 +2,12 @@
 # Variables affecting this role:
 #
 #  tools:
-#    - final_name: the name of the tool to check for
+#    - final_name: the path to the tool to check for
 #      completion: look for bash_completion or no
+#      completion_file: the name of the bash completion file
 #  clusters:
 #   just a simple list of clusters to check
 #
-# TODO: move clusters somewhere else than vars/ and perhaps make it richer
-#
 - name: Check for tools
   file:
     path: "{{ tools[item].final_name }}"
@@ -52,4 +51,5 @@
     kubeconfig: tmp/kubeconfig-{{ item }}
     validate_certs: no
   loop: "{{ clusters }}"
+
 ...

+ 1 - 1
roles/check-env/vars/main.yml

@@ -2,8 +2,8 @@
 tools:
   oc:
     final_name: /usr/bin/oc
-    completion_file: oc
     completion: yes
+    completion_file: oc
 clusters:
   - ocp4
 ...