123456789101112131415161718192021222324252627282930 |
- - name: Install docker prerequsistes
- apt:
- pkg:
- - apt-transport-https
- - ca-certificates
- - curl
- - software-properties-common
- - name: Add docker repo key
- shell: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
- - name: add repo for docker
- shell: echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | tee /etc/apt/sources.list.d/docker.list
- - name: Update repositories cache
- apt:
- update_cache: yes
- - name: telegraf
- apt:
- pkg:
- - docker-ce
- #install compose:
- - name: download compose
- 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
- - name: link compose
- shell: chmod +x /usr/local/bin/docker-compose
|