first pass at quick start for physical pod and changes because of write up
diff --git a/roles/compute-node/tasks/main.yml b/roles/compute-node/tasks/main.yml
index 14b3072..cc4a3ee 100644
--- a/roles/compute-node/tasks/main.yml
+++ b/roles/compute-node/tasks/main.yml
@@ -93,9 +93,11 @@
when: ifaces_changed.stdout.find("true") != -1
tags:
- interface_config
+ - reboot
- name: Wait For Restart
local_action: wait_for port=22 host={{ inventory_hostname }} search_regex=OpenSSH delay=30 timeout=600 connect_timeout=15
when: ifaces_changed.stdout.find("true") != -1
tags:
- interface_config
+ - reboot
diff --git a/roles/head-node/tasks/main.yml b/roles/head-node/tasks/main.yml
index 21495f1..5f68d38 100644
--- a/roles/head-node/tasks/main.yml
+++ b/roles/head-node/tasks/main.yml
@@ -17,7 +17,7 @@
- name: Ensure Ansible Roles
become_user: maas
- command: cp -r /tmp/ansible.maas/{{ item }} /etc/maas/ansible/{{ item }}
+ command: cp -r /tmp/ansible.maas/{{ item }} /etc/maas/ansible owner=maas group=maas
with_items:
- roles
diff --git a/roles/maas/tasks/main.yml b/roles/maas/tasks/main.yml
index 782c48a..1452901 100644
--- a/roles/maas/tasks/main.yml
+++ b/roles/maas/tasks/main.yml
@@ -163,6 +163,7 @@
- switch_support
- name: Restart MAAS Services
+ become: yes
service:
name={{ item }}
state=restarted