title: Cannot start the Docker service using Ansible on Vagrant box
body: <pre><code>---
  - hosts: vagrant
    remote_user: root
    become_method: sudo
    tasks:
          - name: Start service docker, if not running
            service:
                 name: docker
                 state: started
  </code></pre>
  
  <blockquote>
    <p>ERROR:  fatal: [192.168.1.16]: FAILED! => {"changed": false, "msg":
    "Unable to start service docker: Failed to start docker.service:
    Interactive authentication required.\nSee system logs and 'systemctl
    status docker.service' for details.\n"}</p>
  </blockquote>
  
  <p>I want to start Docker using Ansible to other host (Vagrant). I could ping with Ansible to two hosts. But it won't work with Vagrant host.</p>
  
  <p>Have any idea how to fix this?</p>