commit cb7624bce1a3dd0bbdbebacf80dd07dc43e93b96 Author: Ernst Thaelmann Date: Sun Feb 28 00:07:35 2021 +0100 Merge branch 'main' into 15-create-roles-nc-oo-bw 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