diff --git a/playbooks/ipro_for_cluster_ips.yaml b/playbooks/ipro_for_cluster_ips.yaml index 82453e7d7..7ddd04006 100644 --- a/playbooks/ipro_for_cluster_ips.yaml +++ b/playbooks/ipro_for_cluster_ips.yaml @@ -20,5 +20,5 @@ shell: ip ro add {{ hostvars[groups['kube-master'][0]]['kube_service_addresses']['stdout'] }} via {{ local_ip.stdout }} when: local_route.stdout.find('{{ local_ip.stdout }}') == -1 - name: Add openstack namespace to resolv.conf - shell: grep openstack.svc.cluster.local /etc/resolv.conf || sed '/^search / s/$/ openstack.svc.cluster.local/' /etc/resolv.conf + shell: grep openstack.svc.cluster.local /etc/resolv.conf || sed '/^search / s/$/ openstack.svc.cluster.local/' -i /etc/resolv.conf