title: Build Docker image using Ansible Playbook (with multi-target Dockerfile)
body: <p>Is there any option how to implement Docker command (<code>--target</code> parameter)</p>
  
  <pre><code>docker build --target backend -t project/backend:latest
  </code></pre>
  
  <p>in Ansible Playbook with <code>docker_image</code> module? Right now in playbook:</p>
  
  <pre><code>- hosts: localhost
    tasks:
      - name: Build backend image
        docker_image:
          path: /var/lib/workspace/project/backend
          name: project/backend:latest
  </code></pre>