mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
postgresql_db: add an example (#387)
This commit is contained in:
parent
b41b46593e
commit
bf5856b10c
1 changed files with 7 additions and 0 deletions
|
@ -178,6 +178,13 @@ EXAMPLES = r'''
|
|||
target: /tmp/acme.sql
|
||||
target_opts: "-n public"
|
||||
|
||||
- name: Dump only table1 and table2 from the acme database
|
||||
postgresql_db:
|
||||
name: acme
|
||||
state: dump
|
||||
target: /tmp/table1_table2.sql
|
||||
target_opts: "-t table1 -t table2"
|
||||
|
||||
# Note: In the example below, if database foo exists and has another tablespace
|
||||
# the tablespace will be changed to foo. Access to the database will be locked
|
||||
# until the copying of database files is finished.
|
||||
|
|
Loading…
Reference in a new issue