postgresql modules: explicit defaults for bool params (#61538) (#61679)

(cherry picked from commit a6d9401c88)
pull/61725/head
Andrey Klychkov 6 years ago committed by Alicia Cozine
parent dc5f369245
commit a1715ee1b2

@ -57,6 +57,7 @@ options:
- Mark I(src)/I(dst) as a program. Data will be copied to/from a program. - Mark I(src)/I(dst) as a program. Data will be copied to/from a program.
- See block Examples and PROGRAM arg description U(https://www.postgresql.org/docs/current/sql-copy.html). - See block Examples and PROGRAM arg description U(https://www.postgresql.org/docs/current/sql-copy.html).
type: bool type: bool
default: no
options: options:
description: description:
- Options of COPY command. - Options of COPY command.
@ -334,7 +335,7 @@ def main():
dst=dict(type='str', aliases=['destination']), dst=dict(type='str', aliases=['destination']),
columns=dict(type='list', aliases=['column']), columns=dict(type='list', aliases=['column']),
options=dict(type='dict'), options=dict(type='dict'),
program=dict(type='bool'), program=dict(type='bool', default=False),
db=dict(type='str', aliases=['login_db']), db=dict(type='str', aliases=['login_db']),
session_role=dict(type='str'), session_role=dict(type='str'),
) )

@ -64,6 +64,7 @@ options:
(e.g., VACUUM). (e.g., VACUUM).
- Mutually exclusive with I(check_mode). - Mutually exclusive with I(check_mode).
type: bool type: bool
default: no
version_added: '2.9' version_added: '2.9'
author: author:
- Felix Archambault (@archf) - Felix Archambault (@archf)
@ -233,7 +234,7 @@ def main():
named_args=dict(type='dict'), named_args=dict(type='dict'),
session_role=dict(type='str'), session_role=dict(type='str'),
path_to_script=dict(type='path'), path_to_script=dict(type='path'),
autocommit=dict(type='bool'), autocommit=dict(type='bool', default=False),
) )
module = AnsibleModule( module = AnsibleModule(

@ -92,6 +92,7 @@ options:
has reached its maximum value will return an error. False (NO CYCLE) is has reached its maximum value will return an error. False (NO CYCLE) is
the default. the default.
type: bool type: bool
default: no
cascade: cascade:
description: description:
- Automatically drop objects that depend on the sequence, and in turn all - Automatically drop objects that depend on the sequence, and in turn all
@ -99,6 +100,7 @@ options:
- Ignored if I(state=present). - Ignored if I(state=present).
- Only used with I(state=absent). - Only used with I(state=absent).
type: bool type: bool
default: no
rename_to: rename_to:
description: description:
- The new name for the I(sequence). - The new name for the I(sequence).
@ -471,9 +473,9 @@ def main():
maxvalue=dict(type='int', aliases=['max']), maxvalue=dict(type='int', aliases=['max']),
start=dict(type='int'), start=dict(type='int'),
cache=dict(type='int'), cache=dict(type='int'),
cycle=dict(type='bool'), cycle=dict(type='bool', default=False),
schema=dict(type='str', default='public'), schema=dict(type='str', default='public'),
cascade=dict(type='bool'), cascade=dict(type='bool', default=False),
rename_to=dict(type='str'), rename_to=dict(type='str'),
owner=dict(type='str'), owner=dict(type='str'),
newschema=dict(type='str'), newschema=dict(type='str'),

@ -464,15 +464,15 @@ def main():
db=dict(type='str', default='', aliases=['login_db']), db=dict(type='str', default='', aliases=['login_db']),
tablespace=dict(type='str'), tablespace=dict(type='str'),
owner=dict(type='str'), owner=dict(type='str'),
unlogged=dict(type='bool'), unlogged=dict(type='bool', default=False),
like=dict(type='str'), like=dict(type='str'),
including=dict(type='str'), including=dict(type='str'),
rename=dict(type='str'), rename=dict(type='str'),
truncate=dict(type='bool'), truncate=dict(type='bool', default=False),
columns=dict(type='list'), columns=dict(type='list'),
storage_params=dict(type='list'), storage_params=dict(type='list'),
session_role=dict(type='str'), session_role=dict(type='str'),
cascade=dict(type='bool'), cascade=dict(type='bool', default=False),
) )
module = AnsibleModule( module = AnsibleModule(
argument_spec=argument_spec, argument_spec=argument_spec,

Loading…
Cancel
Save