restart the services to start utilizing the new templates
Change-Id: I7b9b33e25a09f879245f0b93ca8589f6cca48085
diff --git a/roles/maas/tasks/main.yml b/roles/maas/tasks/main.yml
index d947b34..b901e7b 100644
--- a/roles/maas/tasks/main.yml
+++ b/roles/maas/tasks/main.yml
@@ -296,6 +296,26 @@
command: resolvconf -u
when: ns_nameserver.changed or ns_search.changed
+- name: Restart MAAS Services
+ become: yes
+ service:
+ name={{ item }}
+ state=restarted
+ with_items:
+ - maas-proxy
+ - maas-regiond
+ - maas-clusterd
+ - maas-dhcpd
+ tags:
+ - maas_restart
+
+- name: Wait for MAAS to Intialize (start)
+ pause:
+ seconds=30
+ changed_when: false
+ tags:
+ - maas_restart
+
- name: Ensure DNS
become: yes
service: