Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - hosts: all
- gather_facts: false
- tasks:
- - name: Add an apt signing key for Docker
- apt_key:
- url: https://download.docker.com/linux/ubuntu/gpg
- state: present
- - name: Add apt repository for stable version
- apt_repository:
- repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
- state: present
- - name: Install docker and its dependecies
- apt:
- name: "{{ packages }}"
- state: present
- update_cache: yes
- vars:
- packages:
- - docker-ce=5:18.09.9~3-0~ubuntu-bionic
- - docker-ce-cli=5:18.09.9~3-0~ubuntu-bionic
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement