Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the example playbook for the new MySQL parameter format #958

Merged
merged 1 commit into from
Aug 29, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 4 additions & 7 deletions examples/playbooks/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@
- hosts: all
user: root

vars:
mysql_root_password: 'password'

tasks:

- name: Create database user
action: mysql_user loginpass=$mysql_root_password user=bob passwd=12345 priv=*.*:ALL state=present
action: mysql_user user=bob password=12345 priv=*.*:ALL state=present

- name: Create database
action: mysql_db loginpass=$mysql_root_password db=bobdata state=present
action: mysql_db db=bobdata state=present

- name: Ensure no user named 'sally' exists
action: mysql_user loginpass=$mysql_root_password user=sally state=absent
- name: Ensure no user named 'sally' exists and delete if found.
action: mysql_user user=sally state=absent