summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/database/tasks/main.yml
blob: 314a85bd12b1b23fa7be8a15bdf39bce4a685295 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- 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]

- meta: flush_handlers