Starting to create galera cluster tasks

This commit is contained in:
2016-01-22 11:17:35 -05:00
parent cece672c17
commit 957299ed60

21
roles/db/tasks/main.yml Normal file
View File

@@ -0,0 +1,21 @@
---
# This installs mariadb and galera on db nodes
- name: Update apt
apt: update_cache=yes
- name: Install software properties
apt: name=software-properties-common state=present
- name: Add galera apt repo
apt_key: url=hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
apt_repository: repo='deb [arch=amd64,i386] http://ftp.osuosl.org/pub/mariadb/repo/10.1/ubuntu trusty main'
- name: Update apt
apt: udpate_cache=yes
- name: Install mariadb
apt: name=mariadb-server state=present