Change examples syntax on mysql_db module
This commit is contained in:
parent
079bf05ec3
commit
119a767cd2
1 changed files with 10 additions and 3 deletions
|
@ -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…
Reference in a new issue