CORD-229 - updated to implement initial base switch provisioning
Change-Id: I3deca583dc2753e1a2c77629f1ee45f8b66223c8
diff --git a/roles/head-node/tasks/main.yml b/roles/head-node/tasks/main.yml
index d084a67..6735f20 100644
--- a/roles/head-node/tasks/main.yml
+++ b/roles/head-node/tasks/main.yml
@@ -26,11 +26,14 @@
- name: Ensure Ansible Provisioning Script
become: yes
copy:
- dest=/etc/maas/ansible/do-ansible
- src=files/do-ansible
+ dest=/etc/maas/ansible/{{ item }}
+ src=files/{{ item }}
owner=maas
group=maas
mode=0755
+ with_items:
+ - do-ansible
+ - do-switch
- name: Ensure Provisioning Log Directory
become: yes
@@ -44,8 +47,11 @@
- name: Ensure Compute Node Playbook
become: yes
template:
- src=files/compute-node.yml.j2
- dest=/etc/maas/ansible/compute-node.yml
+ src=files/{{ item }}
+ dest=/etc/maas/ansible/{{ item }}
owner=maas
group=maas
mode=0644
+ with_items:
+ - compute-node.yml
+ - switch-node.yml