1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Update the example playbook for the new MySQL parameter format

This commit is contained in:
Mark Theunissen 2012-08-28 17:51:12 -05:00
parent f9e9753141
commit bfe3e97e63

View file

@ -6,16 +6,13 @@
- hosts: all - hosts: all
user: root user: root
vars:
mysql_root_password: 'password'
tasks: tasks:
- name: Create database user - 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 - 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 - name: Ensure no user named 'sally' exists and delete if found.
action: mysql_user loginpass=$mysql_root_password user=sally state=absent action: mysql_user user=sally state=absent