commit
3573f9b61a
9 changed files with 12 additions and 11 deletions
|
@ -149,6 +149,7 @@ def main():
|
||||||
else:
|
else:
|
||||||
module.fail_json(msg='Failed to upload', status=resp.status, reason=resp.reason, length=resp.length, version=resp.version, headers=resp.getheaders(), chunked=resp.chunked, url=url)
|
module.fail_json(msg='Failed to upload', status=resp.status, reason=resp.reason, length=resp.length, version=resp.version, headers=resp.getheaders(), chunked=resp.chunked, url=url)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# Import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# Create a Webfaction application using Ansible and the Webfaction API
|
# Create a Webfaction application using Ansible and the Webfaction API
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# Create a webfaction database using Ansible and the Webfaction API
|
# Create a webfaction database using Ansible and the Webfaction API
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# Create Webfaction domains and subdomains using Ansible and the Webfaction API
|
# Create Webfaction domains and subdomains using Ansible and the Webfaction API
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# Create webfaction mailbox using Ansible and the Webfaction API
|
# Create webfaction mailbox using Ansible and the Webfaction API
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# Create Webfaction website using Ansible and the Webfaction API
|
# Create Webfaction website using Ansible and the Webfaction API
|
||||||
#
|
#
|
||||||
|
|
0
clustering/__init__.py
Normal file
0
clustering/__init__.py
Normal file
|
@ -225,10 +225,10 @@ def main():
|
||||||
update_password = module.params['update_password']
|
update_password = module.params['update_password']
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if replica_set:
|
if replica_set:
|
||||||
client = MongoClient(login_host, int(login_port), replicaset=replica_set, ssl=ssl)
|
client = MongoClient(login_host, int(login_port), replicaset=replica_set, ssl=ssl)
|
||||||
else:
|
else:
|
||||||
client = MongoClient(login_host, int(login_port), ssl=ssl)
|
client = MongoClient(login_host, int(login_port), ssl=ssl)
|
||||||
|
|
||||||
if login_user is None and login_password is None:
|
if login_user is None and login_password is None:
|
||||||
mongocnf_creds = load_mongocnf()
|
mongocnf_creds = load_mongocnf()
|
||||||
|
|
Loading…
Reference in a new issue