title: Ansible: no package available for docker-ce
body: <p>I want to install Docker on a remote machine with Ubuntu 16.04, using Ansible and following the official docs at <a href="https://docs.docker.com/engine/installation/linux/ubuntu/" rel="nofollow noreferrer">https://docs.docker.com/engine/installation/linux/ubuntu/</a>.
  All seems to work, until ansible reaches the task with name &quot;install Docker&quot;, I get &quot;No package matching 'docker-ce' is available&quot;.</p>
  <p>The following part of the playbook, from the point where the repository is set:</p>
  <pre><code>- name: set the stable repository
      apt_repository: 
        repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable
        
  
    - name: Update all packages to the latest version
      apt:
        upgrade: dist
  
    - name: install Docker
      apt:
        name: docker-ce
        state: present
  </code></pre>
  <p>What could be the problem?</p>