Ansible not pulling images from private Docker repository

It seems this problem already hit some other people and it should already be solved based on this issue: https://github.com/ansible/ansible-modules-core/issues/188
I’m running the latest version 1.8.2 of Ansible and have the same problem (again?).
I explained my setup in this issue https://github.com/ansible/ansible/issues/10209.

Any ideas?

the merge is in the current devel branch, test if that fixes your issue.

I’m running

ansible --version
ansible 1.9 (devel 13d788021f) last updated 2015/02/12 09:28:27 (GMT +1300)
lib/ansible/modules/core: (detached HEAD 8bccb27c41) last updated 2015/02/12 09:27:45 (GMT +1300)
lib/ansible/modules/extras: (detached HEAD d94d0ce70b) last updated 2015/02/11 19:33:25 (GMT +1300)
v2/ansible/modules/core: (detached HEAD 095f8681db) last updated 2015/02/11 19:33:45 (GMT +1300)
v2/ansible/modules/extras: (detached HEAD d94d0ce70b) last updated 2015/02/11 19:34:06 (GMT +1300)
configured module search path = None

and here are my test tasks

  • name: Docker test 1
    docker:
    image: registry.foo-dev.com:8888/test
    username: foo
    password: foo
    state: running
    ignore_errors: true
    tags:

  • foo

  • name: Docker test 2
    docker:
    image: test
    registry: registry.foo-dev.com:8888
    username: foo
    password: foo
    state: running
    ignore_errors: true
    tags:

  • foo

The first gives me “msg: failed to login to the remote registry, check your username/password.”
and the second “msg: Docker API error: No such image: test (tag: latest)”

and running on the host directly “registry.foo.com:8888/test” will start to pull the image.

So it does not look fixed for me