-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdeploy-ipi-lab.yml
52 lines (45 loc) · 1.33 KB
/
deploy-ipi-lab.yml
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
---
- hosts: localhost
gather_facts: False
tasks:
- name: Set the cache of all the download links
import_role:
name: cache
- hosts: localhost
gather_facts: True
environment:
PATH: "{{ playbook_dir }}/bin:{{ ansible_env.PATH }}"
tasks:
- name: Run all the common tasks
import_role:
name: common
- hosts: localhost
gather_facts: False
environment:
PATH: "{{ playbook_dir }}/bin:{{ ansible_env.PATH }}"
GOVC_USERNAME: "{{ vcenter.admin_username }}"
GOVC_PASSWORD: "{{ vcenter.admin_password }}"
GOVC_URL: "https://{{ vcenter.ip }}"
GOVC_DATACENTER: "{{ datacenter }}"
GOVC_INSECURE: 1
tasks:
- name: Run the vmware role to setup vCenter folder
import_role:
name: vmware
- name: Run the deploy_ova to deploy the RHCOS OVA
import_role:
name: deploy_ova
- name: Run the coredns role to deploy the CoreDNS server
import_role:
name: coredns
when: skip_dns is not defined
- name: Configure /etc/resolv.conf with CoreDNS IP
import_role:
name: local_dns
when: config_local_dns is defined
- name: Run steps specific to DHCP and the use of an OVA file
import_role:
name: static_ips_ova
- name: Run steps to finish cluster installation
import_role:
name: finish_install