Issue 1:
ISSUE TYPE

Bug Report

Appears to be similar to 32053 which is closed:

#32053

COMPONENT NAME

URI

ANSIBLE VERSION

ca-spollockmb1:fs-skytap-control spollock$ ansible --version
ansible 2.5.0
config file = /Users/spollock/ansible/fs-skytap-control/ansible.cfg
configured module search path = [u'/Users/spollock/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Library/Python/2.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.10 (default, Oct 23 2015, 19:19:21) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)]
ca-spollockmb1:fs-skytap-control spollock$ python --version
Python 2.7.10

CONFIGURATION

ansible-config dump --only-changed

DEFAULT_REMOTE_PORT(/Users/spollock/ansible/fs-skytap-control/ansible.cfg) = 22

DEFAULT_REMOTE_USER(/Users/spollock/ansible/fs-skytap-control/ansible.cfg) = spollock

DEFAULT_TIMEOUT(/Users/spollock/ansible/fs-skytap-control/ansible.cfg) = 30

RETRY_FILES_ENABLED(/Users/spollock/ansible/fs-skytap-control/ansible.cfg) = False

OS / ENVIRONMENT

OSX 10.11.6

SUMMARY

Throwing an error when connecting to an HTTPS site.

STEPS TO REPRODUCE

- name: Generate the Report
uri:
url: https://cloud.skytap.com/auditing/exports.json
method: POST
user: "{{ skytapuser }}"
password: "{{ skytapapitoken }}"
force_basic_auth: yes
body_format: json
validate_certs: no

EXPECTED RESULTS

Should have returned status = 200

Tested exact same config with POSTMAN and it works fine.

ACTUAL RESULTS

atal: [localhost]: FAILED! => {"changed": false, "content": "", "msg": "Status code was not [200]: Request failed: <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:590)>", "redirected": false, "status": -1, "url": "https://cloud.skytap.com/auditing/exports.json"}

Issue 2:
Issue Type:

Bug Report

Ansible Version:

ansible 1.6 (devel c09e465) last updated 2014/03/17 14:53:17 (GMT -500)

Environment:

OS X 10.9.2 against Centos 5/6, Ubuntu 12.04/13.10, *BSD, Solaris.

Summary:

While testing out a PR I came across this traceback when just trying to duplicate the examples from the assemble module. It looks like this is related to the escaping of '#' when in a KEY=VAL when running a module. May relate to GH-6287

Steps To Reproduce:

Execute a task as such:

---
- name: Copy the files out to the remote.
copy: src=test_config.d dest=/tmp/

- name: Assemble the test.conf file from local files.
assemble: src=/tmp/test_config.d dest=/tmp/local_test.config

- name: Assemble the test.conf file with a delimiter from local files.
assemble: src=/tmp/test_config.d dest=/tmp/local_test-w-del.config delimiter='### Fragment Boundry ###'

- name: Assemble the test.conf file from remote files.
assemble: remote_src=False src=test_config.d dest=/tmp/remote_test.config

- name: Assemble the test.conf file with a delimiter from remote files.
assemble: remote_src=False src=test_config.d dest=/tmp/remote_test-w-del.config delimiter='### Fragment Boundry ###'

Expected Results:

Files are assembled with "### Fragment Boundry ###" marking the original boundaries.

Actual Results:

TASK: [test_assemble | Assemble the test.conf file.] **************************
fatal: [test-debian7] => Traceback (most recent call last):
File "/Users/ri/repos/github.com/risaacson/ansible/lib/ansible/runner/__init__.py", line 516, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File "/Users/ri/repos/github.com/risaacson/ansible/lib/ansible/runner/__init__.py", line 606, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File "/Users/ri/repos/github.com/risaacson/ansible/lib/ansible/runner/__init__.py", line 801, in _executor_internal_inner
result = handler.run(conn, tmp, module_name, module_args, inject, complex_args)
File "/Users/ri/repos/github.com/risaacson/ansible/lib/ansible/runner/action_plugins/assemble.py", line 61, in run
options.update(utils.parse_kv(module_args))
File "/Users/ri/repos/github.com/risaacson/ansible/lib/ansible/utils/__init__.py", line 542, in parse_kv
vargs = [x.decode('utf-8') for x in shlex.split(args, posix=True)]
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shlex.py", line 279, in split
return list(lex)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shlex.py", line 269, in next
token = self.get_token()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shlex.py", line 96, in get_token
raw = self.read_token()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shlex.py", line 172, in read_token
raise ValueError, "No closing quotation"
ValueError: No closing quotation