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