From d529e77a45c77c10ac6970ca9e733e92e89d138f Mon Sep 17 00:00:00 2001 From: chigang Date: Mon, 3 Jul 2017 14:40:34 +0800 Subject: Fix DNS flush JIRA:- It doesn't need to config DNS in ansible roles, just need to set NAMESERVERS variable Change-Id: I37a70b32c766c1fad7afa5289ffbbc27b956b2d5 Signed-off-by: chigang --- .../ansible/roles/config-deployment/files/setup-ovs.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'deploy/adapters/ansible/roles/config-deployment/files/setup-ovs.yml') diff --git a/deploy/adapters/ansible/roles/config-deployment/files/setup-ovs.yml b/deploy/adapters/ansible/roles/config-deployment/files/setup-ovs.yml index 10972401..57bc5ef1 100644 --- a/deploy/adapters/ansible/roles/config-deployment/files/setup-ovs.yml +++ b/deploy/adapters/ansible/roles/config-deployment/files/setup-ovs.yml @@ -10,13 +10,14 @@ name: neutron-openvswitch-agent state: stopped + # yamllint disable rule:line-length - name: change the openvswitch_agent.ini lineinfile: dest: /etc/neutron/plugins/ml2/openvswitch_agent.ini insertafter: '^bridge_mappings' line: "local_ip = {{ hostvars[inventory_hostname]['container_networks']['tunnel_address']['address'] }}" when: - - inventory_hostname not in groups['nova_compute'] + - inventory_hostname not in groups['nova_compute'] - name: change the openvswitch_agent.ini lineinfile: @@ -27,7 +28,8 @@ notify: - Restart neutron-openvswitch-agent when: - - inventory_hostname in groups['nova_compute'] + - inventory_hostname in groups['nova_compute'] + # yamllint enable rule:line-length - name: Setup br-provider openvswitch_bridge: @@ -36,7 +38,7 @@ notify: - Restart neutron-openvswitch-agent when: - - inventory_hostname not in groups['nova_compute'] + - inventory_hostname not in groups['nova_compute'] - name: Add port to br-provider openvswitch_port: @@ -46,7 +48,7 @@ notify: - Restart neutron-openvswitch-agent when: - - inventory_hostname not in groups['nova_compute'] + - inventory_hostname not in groups['nova_compute'] handlers: - name: Restart neutron-openvswitch-agent -- cgit 1.2.3-korg