Native YAML - databases/pgsql (#3606)

pull/18777/head
Fabio Alessandro Locati 8 years ago committed by Matt Clay
parent 51798cba0e
commit 47442b7c22

@ -119,16 +119,32 @@ EXAMPLES = '''
# Add language pltclu to database testdb if it doesn't exist and mark it as trusted:
# Marks the language as trusted if it exists but isn't trusted yet
# force_trust makes sure that the language will be marked as trusted
- postgresql_lang db=testdb lang=pltclu state=present trust=yes force_trust=yes
- postgresql_lang:
db: testdb
lang: pltclu
state: present
trust: yes
force_trust: yes
# Remove language pltclu from database testdb:
- postgresql_lang: db=testdb lang=pltclu state=absent
- postgresql_lang:
db: testdb
lang: pltclu
state: absent
# Remove language pltclu from database testdb and remove all dependencies:
- postgresql_lang: db=testdb lang=pltclu state=absent cascade=yes
- postgresql_lang:
db: testdb
lang: pltclu
state: absent
cascade: yes
# Remove language c from database testdb but ignore errors if something prevents the removal:
- postgresql_lang: db=testdb lang=pltclu state=absent fail_on_drop=no
- postgresql_lang:
db: testdb
lang: pltclu
state: absent
fail_on_drop: no
'''
try:

Loading…
Cancel
Save