summaryrefslogtreecommitdiff
path: root/database/postgresql/postgresql_lang.py
diff options
context:
space:
mode:
authorFabio Alessandro Locati <me@fale.io>2016-12-01 14:03:39 +0000
committerJohn R Barker <john@johnrbarker.com>2016-12-01 14:03:39 +0000
commitf9131363ba958e558ea8023298e7ac1dd2411e37 (patch)
tree63e4363c66affb0dde96dcbbf4fa596fa04ff417 /database/postgresql/postgresql_lang.py
parent990a9462e56d45f7595671594e0958a6295815e4 (diff)
downloadansible-modules-extras-f9131363ba958e558ea8023298e7ac1dd2411e37.tar.gz
Native YAML - databases/pgsql (#3606)
Diffstat (limited to 'database/postgresql/postgresql_lang.py')
-rw-r--r--database/postgresql/postgresql_lang.py24
1 files changed, 20 insertions, 4 deletions
diff --git a/database/postgresql/postgresql_lang.py b/database/postgresql/postgresql_lang.py
index a0b24cdd..8e4fad37 100644
--- a/database/postgresql/postgresql_lang.py
+++ b/database/postgresql/postgresql_lang.py
@@ -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: