From 6d3511398765e584048768ec4614883b54c29dbd Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Sat, 20 Oct 2018 17:18:23 +0000 Subject: [PATCH] docker role --- tasks/main.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tasks/main.yaml b/tasks/main.yaml index ed97d53..1fa4df1 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -1 +1,29 @@ --- + +- name: debian requirements + apt: + pkg: + - apt-transport-https + - ca-certificates + - curl + - gnupg2 + - software-properties-common + +- name: debian repository key + apt_key: + url: https://download.docker.com/linux/debian/gpg + id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88 + +- name: debian repository + apt_repository: + repo: deb [arch=amd64] https://download.docker.com/linux/debian {{ansible_distribution_release}} stable + filename: docker + +- name: docker-ce + apt: + pkg: docker-ce + +- name: set sysctl vm.overcommit_memory to 1 + sysctl: + name: vm.overcommit_memory + value: 1