From bfe3e97e634149c3cfdb4ae9a31ab58d15277355 Mon Sep 17 00:00:00 2001 From: Mark Theunissen Date: Tue, 28 Aug 2012 17:51:12 -0500 Subject: [PATCH] Update the example playbook for the new MySQL parameter format --- examples/playbooks/mysql.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/examples/playbooks/mysql.yml b/examples/playbooks/mysql.yml index 6be45166d4..27207a837a 100644 --- a/examples/playbooks/mysql.yml +++ b/examples/playbooks/mysql.yml @@ -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