updated to push SSH keys to the compute nodes

Change-Id: I55dda3a1e04380263577c32ee702256f60d9133a
diff --git a/roles/compute-node/tasks/main.yml b/roles/compute-node/tasks/main.yml
index d64adfe..58bea5f 100644
--- a/roles/compute-node/tasks/main.yml
+++ b/roles/compute-node/tasks/main.yml
@@ -11,6 +11,40 @@
     name=ubuntu
     password="$6$TjhJuOgh8xp.v$z/4GwFbn5koVmkD6Ex9wY7bgP7L3uP2ujZkZSs1HNdzQdz9YclbnZH9GvqMC/M1iwC0MceL05.13HoFz/bai0/"
 
+- name: Authorize SSH Key
+  become: yes
+  authorized_key:
+    key="{{ pub_ssh_key }}"
+    user=ubuntu
+    state=present
+
+- name: Verify Private SSH Key
+  become: yes
+  stat:
+    path=/home/ubuntu/.ssh/id_rsa
+  register: private_key
+
+- name: Ensure Private SSH Key
+  become: yes
+  copy:
+    src=files/{{ item }}
+    dest=/home/ubuntu/.ssh/{{ item }}
+    owner=ubuntu
+    group=ubuntu
+    mode=0600
+  with_items:
+    - id_rsa
+    - id_rsa.pub
+
+- name: Ensure CORD SUDO
+  become: yes
+  copy:
+    src=files/99-cord-sudoers
+    dest=/etc/sudoers.d/99-cord-sudoers
+    owner=root
+    group=root
+    mode=0600
+
 - name: Verify i40e Driver
   command: modinfo --field=version i40e
   register: i40e_version