subnet_update_dns_servers.yaml 373 B

123456789
  1. ---
  2. - name: Live update the subnet's DNS servers
  3. os_subnet:
  4. name: openshift-ansible-{{ stack_name }}-subnet
  5. network_name: openshift-ansible-{{ stack_name }}-net
  6. state: present
  7. use_default_subnetpool: yes
  8. dns_nameservers: "{{ [private_dns_server|default(public_dns_nameservers[0])]|union(public_dns_nameservers)|unique }}"
  9. when: not provider_network