You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
790 B

9 years ago
8 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. ---
  2. - name: Install prerequisites for https transport
  3. apt: pkg={{ item }} state=present update_cache=yes
  4. with_items:
  5. - apt-transport-https
  6. - ca-certificates
  7. - name: Configure docker apt repository
  8. template: src=docker.list.j2 dest=/etc/apt/sources.list.d/docker.list backup=yes
  9. - name: Install docker-engine
  10. apt: pkg={{ item }} state=present force=yes update_cache=yes
  11. with_items:
  12. - aufs-tools
  13. - cgroupfs-mount
  14. - docker-engine=1.9.1-0~{{ ansible_distribution_release }}
  15. - name: Copy default docker configuration
  16. template: src=default-docker.j2 dest=/etc/default/docker backup=yes
  17. notify: restart docker
  18. - name: Copy Docker systemd unit file
  19. copy: src=systemd-docker.service dest=/lib/systemd/system/docker.service backup=yes
  20. notify: restart docker