--- - hosts: leftcoastlab become: yes tasks: - name: Install docker dependencies apt: name: "{{item}}" update_cache: yes loop: - apt-transport-https - ca-certificates - curl - gnupg - software-properties-common - lsb-release - name: Install Docker apt: name: docker.io update_cache: yes