mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 01:03:09 +00:00
Change examples syntax on mysql_db module
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user