github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/bench/tools/aisloader-composer/playbooks/install_docker.yaml (about) 1 # Based on https://www.digitalocean.com/community/tutorials/how-to-use-ansible-to-install-and-set-up-docker-on-ubuntu-20-04 2 - name: Install docker on defined hosts 3 hosts: "{{ docker_hosts }}" 4 become: true 5 gather_facts: no 6 7 tasks: 8 - name: Install aptitude 9 apt: 10 name: aptitude 11 state: latest 12 update_cache: true 13 14 - name: Install required system packages 15 apt: 16 pkg: 17 - apt-transport-https 18 - ca-certificates 19 - curl 20 - software-properties-common 21 - python3-pip 22 - virtualenv 23 - python3-setuptools 24 state: latest 25 update_cache: true 26 27 - name: Add Docker GPG apt Key 28 apt_key: 29 url: https://download.docker.com/linux/ubuntu/gpg 30 state: present 31 32 - name: Add Docker Repository 33 apt_repository: 34 repo: deb https://download.docker.com/linux/ubuntu focal stable 35 state: present 36 37 - name: Update apt and install docker-ce 38 apt: 39 name: docker-ce 40 state: latest 41 update_cache: true