github.com/weaveworks/common@v0.0.0-20230728070032-dd9e68f319d5/tools/config_management/roles/docker-from-get.docker.com/tasks/redhat.yml (about) 1 --- 2 # RedHat / CentOS specific: 3 4 - name: rpm-import gpg key for the docker repository 5 shell: curl -sSLo /tmp/docker.gpg https://get.docker.com/gpg && sudo rpm --import /tmp/docker.gpg 6 7 - name: install docker 8 shell: 'curl -sSL https://get.docker.com/ | sed -e s/docker-engine/docker-engine-{{ docker_version }}*/ | sh' 9 10 - name: wait for docker installation to complete 11 shell: yum install -y yum-utils && yum-complete-transaction