ubuntu.yml 790 B

123456789101112131415161718192021222324252627282930
  1. - name: Install docker prerequsistes
  2. apt:
  3. pkg:
  4. - apt-transport-https
  5. - ca-certificates
  6. - curl
  7. - software-properties-common
  8. - name: Add docker repo key
  9. shell: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
  10. - name: add repo for docker
  11. shell: echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | tee /etc/apt/sources.list.d/docker.list
  12. - name: Update repositories cache
  13. apt:
  14. update_cache: yes
  15. - name: telegraf
  16. apt:
  17. pkg:
  18. - docker-ce
  19. #install compose:
  20. - name: download compose
  21. shell: curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
  22. - name: link compose
  23. shell: chmod +x /usr/local/bin/docker-compose