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