aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/database/tasks/main.yml
blob: bfdcb75bbb785c25ab81f83809990c145953063b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
- include_vars: "{{ ansible_os_family }}.yml"

- include: mariadb_install.yml
- include: mariadb_cluster.yml
  when: '{{ haproxy_hosts|length }} > 1'

- include: mariadb_config.yml
  when:
    - inventory_hostname == haproxy_hosts.keys()[0]

- include: mongodb_install.yml
- include: mongodb_config.yml
  when:
    - inventory_hostname == haproxy_hosts.keys()[0]