Starting to create galera cluster tasks
This commit is contained in:
21
roles/db/tasks/main.yml
Normal file
21
roles/db/tasks/main.yml
Normal 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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user