Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (28 sloc) 1.01 KB
---
# check if mtab is there
- name: check if mtab exists
action: shell test -f /etc/mtab && echo "aqui" || echo "nada"
register: mtab_check
# Create link if not already exists. Upstart for mysql needs this!
- name: create mtab if not exists
action: file src=/proc/mounts dest=/etc/mtab state=link
when: mtab_check.stdout == "nada"
# file: tasks/install_galera.yml
# check if galera is already installed
- name: check to determine if galera is aready installed
action: shell test -d /etc/mysql && echo "installed" || echo "bootstrap"
register: bootstrap_check
# Create link if not already exists. Upstart for mysql needs this!
# - name: create /etc/mysql if not exists
# action: file path=/etc/mysql state=directory
# when: bootstrap_check.stdout == "bootstrap"
- name: Install Percona XtraDB Cluster server
apt: pkg={{ item }}
state=present
with_items:
- percona-xtradb-cluster-server-5.6
- python-mysqldb
- xinetd
- git
- name: Start MySQL
command: /etc/init.d/mysql restart