Change examples syntax on mysql_db module

This commit is contained in:
Sam Doran 2016-10-12 15:19:37 -04:00 committed by Matt Clay
parent 079bf05ec3
commit 119a767cd2

View file

@ -79,11 +79,18 @@ extends_documentation_fragment: mysql
EXAMPLES = '''
# Create a new database with name 'bobdata'
- mysql_db: name=bobdata state=present
- mysql_db:
name: bobdata
state: present
# Copy database dump file to remote host and restore it to database 'my_db'
- copy: src=dump.sql.bz2 dest=/tmp
- mysql_db: name=my_db state=import target=/tmp/dump.sql.bz2
- copy:
src: dump.sql.bz2
dest: /tmp
- mysql_db:
name: my_db
state: import
target: /tmp/dump.sql.bz2
# Dumps all databases to hostname.sql
- mysql_db: state=dump name=all target=/tmp/{{ inventory_hostname }}.sql