|
|
@ -95,11 +95,13 @@ options:
|
|
|
|
- denotes if the password is already encrypted. boolean.
|
|
|
|
- denotes if the password is already encrypted. boolean.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: false
|
|
|
|
default: false
|
|
|
|
|
|
|
|
version_added: '1.4'
|
|
|
|
expires:
|
|
|
|
expires:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- sets the user's password expiration.
|
|
|
|
- sets the user's password expiration.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: null
|
|
|
|
default: null
|
|
|
|
|
|
|
|
version_added: '1.4'
|
|
|
|
notes:
|
|
|
|
notes:
|
|
|
|
- The default authentication assumes that you are either logging in as or
|
|
|
|
- The default authentication assumes that you are either logging in as or
|
|
|
|
sudo'ing to the postgres account on the host.
|
|
|
|
sudo'ing to the postgres account on the host.
|
|
|
@ -131,6 +133,9 @@ EXAMPLES = '''
|
|
|
|
|
|
|
|
|
|
|
|
# Example privileges string format
|
|
|
|
# Example privileges string format
|
|
|
|
INSERT,UPDATE/table:SELECT/anothertable:ALL
|
|
|
|
INSERT,UPDATE/table:SELECT/anothertable:ALL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Remove an existing user's password
|
|
|
|
|
|
|
|
- postgresql_user: db=test user=test password=NULL
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
import re
|
|
|
|
import re
|
|
|
|