add some utility scripts and update the playbook to verify API connectitivy and image download
Change-Id: I007a2aef68f5c60a4c809cd711aff4d18d87efb9
diff --git a/roles/compute-node/tasks/main.yml b/roles/compute-node/tasks/main.yml
index e50cc4e..76f0f85 100644
--- a/roles/compute-node/tasks/main.yml
+++ b/roles/compute-node/tasks/main.yml
@@ -91,6 +91,23 @@
group=root
mode=0600
+- name: Ensure Utility Scripts
+ become: yes
+ copy:
+ src=files/{{ item }}
+ dest=/usr/local/bin/{{ item }}
+ owner=root
+ group=root
+ mode=0755
+ with_items:
+ - delete-fabric-config
+ - delete-node-prov-state
+ - docker-ip
+ - fabric-pingall
+ - get-fabric-config
+ - get-node-prov-state
+ - remove-xos-components
+
- name: Verify Mellanox 40Gb NIC
shell: /usr/bin/lspci | grep "Ethernet controller" | grep -c ConnectX-3 || true
register: mlx_nic_present