summaryrefslogtreecommitdiffstats
path: root/roles/openstack-stack/tasks/subnet_update_dns_servers.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openstack-stack/tasks/subnet_update_dns_servers.yaml')
-rw-r--r--roles/openstack-stack/tasks/subnet_update_dns_servers.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/openstack-stack/tasks/subnet_update_dns_servers.yaml b/roles/openstack-stack/tasks/subnet_update_dns_servers.yaml
new file mode 100644
index 000000000..be4f07b97
--- /dev/null
+++ b/roles/openstack-stack/tasks/subnet_update_dns_servers.yaml
@@ -0,0 +1,8 @@
+---
+- name: Live update the subnet's DNS servers
+ os_subnet:
+ name: openshift-ansible-{{ stack_name }}-subnet
+ network_name: openshift-ansible-{{ stack_name }}-net
+ state: present
+ use_default_subnetpool: yes
+ dns_nameservers: "{{ [private_dns_server|default(public_dns_nameservers[0])]|union(public_dns_nameservers)|unique }}"