integrate the provisioner with automation for the automatic deployment
diff --git a/roles/head-node/files/do-ansible b/roles/head-node/files/do-ansible
new file mode 100755
index 0000000..58e8fff
--- /dev/null
+++ b/roles/head-node/files/do-ansible
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+ID=$1
+HOSTNAME=$2
+IP=$3
+MAC=$4
+ROLE=$5
+
+echo "PROVISION $ID $HOSTNAME $IP $MAC $ROLE" >> /etc/maas/ansible/logs/$ID.log
+
+ANSIBLE_ROLES_PATH=/etc/maas/ansible/roles ansible-playbook --private-key=/etc/maas/ansible/id_rsa -i $IP, /etc/maas/ansible/compute-node.yml --skip-tags=interface_config >> /etc/maas/ansible/logs/$ID.out
diff --git a/roles/head-node/tasks/main.yml b/roles/head-node/tasks/main.yml
index a9f5e60..d084a67 100644
--- a/roles/head-node/tasks/main.yml
+++ b/roles/head-node/tasks/main.yml
@@ -23,6 +23,24 @@
   become: yes
   file: dest=/etc/maas/ansible/{{ provision.role_path }} owner=maas group=maas recurse=yes
 
+- name: Ensure Ansible Provisioning Script
+  become: yes
+  copy:
+    dest=/etc/maas/ansible/do-ansible
+    src=files/do-ansible
+    owner=maas
+    group=maas
+    mode=0755
+
+- name: Ensure Provisioning Log Directory
+  become: yes
+  file:
+    path=/etc/maas/ansible/logs
+    state=directory
+    owner=maas
+    group=maas
+    mode=0755
+
 - name: Ensure Compute Node Playbook
   become: yes
   template: