main.yml 605 B

1234567891011121314151617
  1. ---
  2. - name: ensure docker repository key is installed
  3. apt_key:
  4. id: 58118E89F3A912897C070ADBF76221572C52609D
  5. data: "{{ lookup('file', 'docker.gpg') }}"
  6. - name: ensure docker apt repository is installed
  7. apt_repository: repo='deb https://apt.dockerproject.org/repo debian-{{ ansible_distribution_release }} main'
  8. - name: ensure /data/docker exists
  9. file: name=/data/docker state=directory
  10. - name: ensure modified docker.service is installed
  11. copy: src=docker.service dest=/etc/systemd/system/docker.service
  12. - name: ensure docker is installed
  13. apt: name=docker-engine install_recommends=no