connect-switch.yml should be copied as file instead of template
Change-Id: Ia5f739e2c92dbb7be8e6b203e9d36eb23e511845
(cherry picked from commit 911e75d6e950d1577aacd851bbfbffb088870f94)
diff --git a/roles/head-node/tasks/main.yml b/roles/head-node/tasks/main.yml
index e050556..8376233 100644
--- a/roles/head-node/tasks/main.yml
+++ b/roles/head-node/tasks/main.yml
@@ -50,7 +50,7 @@
register: apikey
changed_when: false
-- name: Ensure Playbooks
+- name: Ensure Compute and Switch Node Playbooks
become: yes
template:
src=files/{{ item }}
@@ -61,6 +61,16 @@
with_items:
- compute-node.yml
- switch-node.yml
+
+- name: Ensure Connect Switch Ansible Playbook
+ become: yes
+ copy:
+ dest=/etc/maas/ansible/{{ item }}
+ src=files/{{ item }}
+ owner=maas
+ group=maas
+ mode=0644
+ with_items:
- connect-switch.yml
- name: Ensure Dynamic Inventory Script