Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

41 řádky
924 B

  1. ---
  2. - name: Ensure APT usage dependencies are installed
  3. apt:
  4. name:
  5. - apt-transport-https
  6. - ca-certificates
  7. state: present
  8. update_cache: yes
  9. - name: Ensure Docker's APT key is trusted
  10. apt_key:
  11. url: https://download.docker.com/linux/ubuntu/gpg
  12. id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
  13. state: present
  14. register: add_repository_key
  15. ignore_errors: true
  16. - name: Ensure Docker repository is enabled
  17. apt_repository:
  18. repo: "deb [arch=amd64] https://download.docker.com/linux/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} stable"
  19. state: present
  20. update_cache: yes
  21. - name: Ensure APT packages are installed
  22. apt:
  23. name:
  24. - bash-completion
  25. - python-docker
  26. - ntp
  27. - fuse
  28. state: latest
  29. update_cache: yes
  30. - name: Ensure docker-ce is installed
  31. apt:
  32. name:
  33. - docker-ce
  34. state: latest
  35. update_cache: yes