Skip to content

Instantly share code, notes, and snippets.

@shohey1226
Created January 19, 2014 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shohey1226/8502048 to your computer and use it in GitHub Desktop.
Save shohey1226/8502048 to your computer and use it in GitHub Desktop.
---
- hosts: servers
user: root
tasks:
- name: installl mysql packages
yum: name=mysql state=latest
yum: name=mysql-devel state=latest
yum: name=mysql-server state=latest
- name: configure mysql
command: /sbin/chkconfig mysqld on
command: /etc/init.d/mysqld start
- name: create users/database
script: files/mysql_start.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment