Change examples syntax on mysql_db module

pull/18777/head
Sam Doran 8 years ago committed by Matt Clay
parent 079bf05ec3
commit 119a767cd2

@ -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

Loading…
Cancel
Save