Linux/Ansible/Playbooks
Docker
- Docker
- name: Install prerequisites
apt: update_cache: yes name: ["apt-transport-https", "ca-certificates", "curl", "software-properties-common"]
- name: Add Docker GPG key
apt_key: url=https://download.docker.com/linux/ubuntu/gpg
- name: Add Docker APT repository
apt_repository: repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ansible_distribution_release}} stable
- name: Install Docker
apt: name=docker-ce