-
Notifications
You must be signed in to change notification settings - Fork 1
/
site.yml
35 lines (29 loc) · 1023 Bytes
/
site.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
---
- name: gather facts
hosts: all
gather_facts: True
# This play installs a database used by Ambari and other components.
# It can be skipped if you have a mysql DB already installed, but then please configure it with variables.
# Please look at hdp-ambari-server-core to know what variables to set up.
- name: Install DB for HDP
hosts: hdp-db-server
become: yes
roles:
- role: geerlingguy.mysql
# When you apply a full role like hdp-ambari-server, some subroles run as dependencies.
# If you would like to apply your own subroles separately, you can do that with a play similar to following:
#- name: Prepare hdp nodes
# hosts: hdp
# roles:
# - hdp-basic-packages
# - ansiblebit.oracle-java
# - hdp-ambari-prep
# - hdp-ambari-server-core # this is the main role installing ambari server.
- name: Install Ambari Server
hosts: hdp-ambari-server
roles:
- hdp-ambari-server
- name: Install Ambari Agents
hosts: hdp-ambari-server:hdp-ambari-agent
roles:
- hdp-ambari-agent