From cb7624bce1a3dd0bbdbebacf80dd07dc43e93b96 Mon Sep 17 00:00:00 2001 From: Ernst Thaelmann Date: Sun, 28 Feb 2021 00:07:35 +0100 Subject: [PATCH] Merge branch 'main' into 15-create-roles-nc-oo-bw --- tasks/main.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 tasks/main.yml diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..f8d8c97 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,45 @@ +- name: Ensure packages are installed + become: yes + apt: + name: + - python3-pip + - apt-transport-https + - ca-certificates + - curl + - gnupg-agent + - software-properties-common + state: present + +- name: Trust dockers GPG key + become: yes + apt_key: + url: https://download.docker.com/linux/debian/gpg + state: present + +- name: Ensure docker repository is available + become: yes + apt_repository: + repo: deb https://download.docker.com/linux/debian buster stable + state: present +# notify: Update apt cache + +#- name: Flush handlers +# meta: flush_handlers + +- name: Ensure packages are installed + become: yes + apt: + name: + - docker-ce + - docker-ce-cli + - containerd.io + - docker-compose + update_cache: yes + state: present + +- name: Install docker python module + become: yes + pip: + executable: pip3 + name: + - docker