add support for running ansible on the head node to provision the compute node

Change-Id: I4adda3e903423e68893d2354d6c9c36469ebb517
diff --git a/roles/head-node/tasks/main.yml b/roles/head-node/tasks/main.yml
new file mode 100644
index 0000000..820964a
--- /dev/null
+++ b/roles/head-node/tasks/main.yml
@@ -0,0 +1,32 @@
+- name: Ensure MAAS Ansible Config Directory
+  become: yes
+  file:
+    path=/etc/maas/ansible
+    owner=maas
+    group=maas
+    state=directory
+
+- name: Ensure Ansible Compute Config Files
+  become: yes
+  git:
+    repo=http://gerrit.opencord.org/maas
+    dest=/tmp/ansible.maas
+    clone=yes
+    force=yes
+    update=yes
+
+- name: Ensure Ansible Roles
+  become_user: maas
+  command: cp -r /tmp/ansible.maas/{{ item }} /etc/maas/ansible/{{ item }}
+  with_items:
+    - roles
+    - compute-node.yml
+
+- name: Ensure Compute Node Playbook
+  become: yes
+  copy:
+    src=files/compute-node.yml
+    dest=/etc/maas/ansible/compute-node.yml
+    owner=maas
+    group=maas
+    mode=0644