Created
January 26, 2019 03:46
-
-
Save mschirbel/047f4109befe94da5ca856b5552cfd96 to your computer and use it in GitHub Desktop.
ansible how to create user and db
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Create a new database with name 'laravel' | |
mysql_db: | |
name: laravel | |
state: present | |
- name: create laravel user | |
mysql_user: | |
name: laravel | |
password: laravel | |
priv: '*.*:ALL' | |
state: present |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment