title: Failed to import docker or docker-py - No module named docker
body: <p>I've installed <code>Docker</code> and <code>Ansible</code> to my AWS Ec2 Linux as follow:</p>
  
  <pre><code>sudo yum update -y
  sudo yum install docker -v
  sudo service docker start
  
  sudo yum-config-manager --enable epel
  sudo yum repolist
  sudo yum install ansible
  </code></pre>
  
  <p>I've found following error message when I've tried to pull <code>docker</code> images to my AWS Ec2 Linux with ansible.</p>
  
  <pre><code>fatal: [127.0.0.1]: FAILED! =&gt; {"changed": false, "msg": "Failed to import docker or docker-py - No module named docker. Try `pip install docker` or `pip install docker-py` (Python 2.6)"}
  </code></pre>
  
  <p>Docker version</p>
  
  <pre><code>Client:
   Version:           18.06.1-ce
   API version:       1.38
   Go version:        go1.10.3
   Git commit:        e68fc7a215d7133c34aa18e3b72b4a21fd0c6136
   Built:             Fri Oct 26 23:38:19 2018
   OS/Arch:           linux/amd64
   Experimental:      false
  </code></pre>
  
  <p>Ansible version is</p>
  
  <pre><code>ansible 2.6.8
    config file = /etc/ansible/ansible.cfg
    configured module search path = [u'/home/ec2-user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
    ansible python module location = /usr/lib/python2.6/site-packages/ansible
    executable location = /usr/bin/ansible
    python version = 2.6.9 (unknown, Nov  2 2017, 19:21:21) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]
  </code></pre>
  
  <p>Here is my part of ansible playbook file</p>
  
  <pre><code>- name: Pull a container image
    docker_container:
      name: mynodejs
      image: registry.gitlab.com/ppshein/test:latest
      pull: yes
      state: started
      published_ports:
        - 8080:80
  </code></pre>
  
  <p>Please let me know which I'm missed to configure inside AWS Ec2 Linux.</p>