blob: 412ccd221c1e3b86dc8b6023375bd9c6eec749cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
---
- name: Assign hostnames
hosts: cluster_hosts
gather_facts: False
become: true
pre_tasks:
- include: pre_tasks.yml
roles:
- role: hostnames
- name: Subscribe DNS Host to allow for configuration below
hosts: dns
gather_facts: False
become: true
roles:
- role: subscription-manager
when: hostvars.localhost.rhsm_register
tags: 'subscription-manager'
- name: Determine which DNS server(s) to use for our generated records
hosts: localhost
gather_facts: False
become: False
roles:
- dns-server-detect
- name: Build the DNS Server Views and Configure DNS Server(s)
hosts: dns
gather_facts: False
become: true
pre_tasks:
- include: pre_tasks.yml
- name: "Generate dns-server views"
include: openstack_dns_views.yml
roles:
- role: dns-server
- name: Build and process DNS Records
hosts: localhost
gather_facts: False
become: False
pre_tasks:
- include: pre_tasks.yml
- name: "Generate dns records"
include: openstack_dns_records.yml
roles:
- role: dns
- name: Switch the stack subnet to the configured private DNS server
hosts: localhost
gather_facts: False
become: False
vars_files:
- stack_params.yaml
tasks:
- include_role:
name: openstack-stack
tasks_from: subnet_update_dns_servers
- name: OpenShift Pre-Requisites
hosts: OSEv3
gather_facts: False
become: true
tasks:
- name: "Include DNS configuration to ensure proper name resolution"
lineinfile:
state: present
dest: /etc/sysconfig/network
regexp: "IP4_NAMESERVERS={{ hostvars['localhost'].private_dns_server }}"
line: "IP4_NAMESERVERS={{ hostvars['localhost'].private_dns_server }}"
|