am just trying to tell Ansible to build a docker image on my OS X machine and this is the error I get:
$ ansible-playbook main.yml
PLAY [localhost] **************************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [Build docker image from dockerfiles] ***********************************
failed: [localhost] => {"changed": false, "failed": true}
msg: ConnectionError(ProtocolError('Connection aborted.', error(2, 'No such file or directory')),)
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
           to retry, use: --limit @/Users/ronny/main.retry
localhost                  : ok=1    changed=0    unreachable=0    failed=1
This is the main.yml file I am using:
---
- hosts: localhost
  connection: local
  tasks:
        - name: Build docker image from dockerfiles
          docker_image:
            name: testimage
            path: test
            state: build
My Dockerfile:
# Build an example Docker container image. 
FROM busybox 
MAINTAINER Jeff Geerling 
# Run a command when the container starts. 
CMD ["/bin/true”]”
My docker file is located in cookbook/test/Dockerfile
And the main.yml file is located in cookbook/main.yml
I’m running this on OS X.
I am totally lost at this point and any help would be very appreciated.