Ansible_PUBLIC/roles/docker/tasks/ubuntu.yml

31 lines
790 B
YAML
Raw Normal View History

2020-03-14 00:10:06 +01:00
- 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