-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathself_hosted.yml
37 lines (34 loc) · 1.15 KB
/
self_hosted.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
---
- hosts: self_hosted_first_host
remote_user: root
gather_facts: yes
roles:
- wait_for_host_up
- override_tty
- { role: subscription, when: repositories|length > 0 }
- wait_for_yum_lock
- self_hosted_first_host
- hosts: self_hosted_engine
remote_user: root
gather_facts: no
roles:
- wait_for_host_up
- { role: satellite_registration, when: register_to_satellite is defined and register_to_satellite }
- { role: subscription, when: repositories|length > 0 }
- { role: wait_for_engine, tags: ['config'] }
- datacenter
- storage
- { role: self_hosted_engine, when: repositories|length > 0 }
- wait_for_active_he_vm
- hosts: self_hosted_additional_hosts
remote_user: root
gather_facts: no
vars:
ovirt_engine_version: "{{ compatibility_version if compatibility_version is defined else '4.0' }}"
roles:
- wait_for_host_up
- override_tty
- { role: subscription, when: repositories|length > 0 }
- wait_for_yum_lock
- { role: self_hosted_additional_host, when: ovirt_engine_version < 4.1 }
- { role: register_hypervisor, deploy_hosted_engine: True, when: ovirt_engine_version >= 4.1 }