mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Native YAML - Databases/MsSQL (#3604)
This commit is contained in:
committed by
Matt Clay
parent
7ac053576e
commit
13b970d04b
@@ -81,10 +81,19 @@ author: Vedit Firat Arig
|
||||
|
||||
EXAMPLES = '''
|
||||
# Create a new database with name 'jackdata'
|
||||
- mssql_db: name=jackdata state=present
|
||||
- mssql_db:
|
||||
name: jackdata
|
||||
state: present
|
||||
|
||||
# Copy database dump file to remote host and restore it to database 'my_db'
|
||||
- copy: src=dump.sql dest=/tmp
|
||||
- mssql_db: name=my_db state=import target=/tmp/dump.sql
|
||||
- copy:
|
||||
src: dump.sql
|
||||
dest: /tmp
|
||||
|
||||
- mssql_db:
|
||||
name: my_db
|
||||
state: import
|
||||
target: /tmp/dump.sql
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
|
||||
Reference in New Issue
Block a user