Remove the loopback configuration and mv DNS start
Change-Id: I37aed1d862fc094e61cf013204f30208afaf508a
diff --git a/roles/compute-node/tasks/networking.yml b/roles/compute-node/tasks/networking.yml
index 7586728..e15170d 100644
--- a/roles/compute-node/tasks/networking.yml
+++ b/roles/compute-node/tasks/networking.yml
@@ -33,19 +33,19 @@
when: netinfo[item]['module'] is defined and search_list.find('|' + netinfo[item]['module'] + '|') == -1 and ( not compute_node.interfaces.external or item != compute_node.interfaces.external )
changed_when: false
-- name: Ensure Loopback
- netfile:
- src: "{{ compute_node.interfaces.file }}"
- state: present
- name: lo
- config: loopback
- auto: true
- description: "Loopback interface"
- register: net_changed
+#- name: Ensure Loopback
+# netfile:
+# src: "{{ compute_node.interfaces.file }}"
+# state: present
+# name: lo
+# config: loopback
+# auto: true
+# description: "Loopback interface"
+# register: net_changed
-- name: Verify Loopback Change
- set_fact:
- reboot_required: "{{ net_changed.changed }}"
+#- name: Verify Loopback Change
+# set_fact:
+# reboot_required: "{{ net_changed.changed }}"
- name: Ensure Fabric
netfile:
@@ -63,7 +63,7 @@
- name: Verify Network Change
set_fact:
- reboot_required: "{{ reboot_required }} or {{ net_changed.changed }}"
+ reboot_required: "{{ reboot_required }}"
- name: Gather Primary Fabric Interface
set_fact:
diff --git a/roles/maas/tasks/main.yml b/roles/maas/tasks/main.yml
index c37c9b6..f001e1b 100644
--- a/roles/maas/tasks/main.yml
+++ b/roles/maas/tasks/main.yml
@@ -288,12 +288,6 @@
tags:
- maas_restart
-- name: Ensure DNS
- become: yes
- service:
- name=bind9
- state=restarted
-
- name: MAAS Accepting API Requests
action: get_url url=http://{{ mgmt_ip_address.stdout }}/MAAS/api/1.0/maas/ dest=/tmp
register: api_test2
@@ -384,3 +378,9 @@
delay: 60
failed_when: images_synced.stdout != "[]"
changed_when: false
+
+- name: Ensure DNS
+ become: yes
+ service:
+ name=bind9
+ state=restarted