We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ansible 1.8.2
After enabling TLS for Docker connections in the environment, Ansbile does not seem to use the settings.
When the following env vars are set:
DOCKER_HOST=tcp://dockerhost01:2376 DOCKER_TLS_VERIFY=1 DOCKER_CERT_PATH=/Users/mbajor/Dev/docker-swarm/master/tls
and the following playbook is run:
--- - hosts: local connection: local gather_facts: False vars: docker_host: "{{ lookup('env','DOCKER_HOST') }}" tasks: - name: Run an Nginx container docker: > docker_url={{ docker_host }} image=nginx:latest publish_all_ports=True hostname=nginx state=running count=10 register: nginx_container
The following error output occurs:
PLAY [local] ****************************************************************** TASK: [Run an Nginx container] ************************************************ failed: [localhost] => {"changed": false, "failed": true} msg: ConnectionError(ProtocolError('Connection aborted.', BadStatusLine('\x15\x03\x01\x00\x02\x02\n',)),) FATAL: all hosts have already failed -- aborting PLAY RECAP ******************************************************************** to retry, use: --limit @/Users/mbajor/demo_containers.retry localhost : ok=0 changed=0 unreachable=0 failed=1
Which appears to indicate that it is making a connection over HTTP
I would expect Ansible to connect to the Docker daemon and provision the containers
Ansible exits with a '2' status code
The text was updated successfully, but these errors were encountered:
Related: ansible/ansible-modules-core#272
Sorry, something went wrong.
I believe that this is fixed in devel and the stable-1.9 branch (will be in 1.9rc2). Care to test that out?
PR with the change is here: ansible/ansible-modules-core#926
Closing per the above.
No branches or pull requests
Issue Type: Bug Report
Ansible Version:
ansible 1.8.2
Environment: Mac OSX Yosemite
Summary:
After enabling TLS for Docker connections in the environment, Ansbile does not seem to use the settings.
Steps To Reproduce:
When the following env vars are set:
and the following playbook is run:
The following error output occurs:
Which appears to indicate that it is making a connection over HTTP
Expected Results:
I would expect Ansible to connect to the Docker daemon and provision the containers
Actual Results:
Ansible exits with a '2' status code
The text was updated successfully, but these errors were encountered: