Skip to content

Instantly share code, notes, and snippets.

@nleiva
Created July 1, 2021 14:50
Show Gist options
  • Save nleiva/4ba8cec8ecbe0e611a4386d1c2c158a0 to your computer and use it in GitHub Desktop.
Save nleiva/4ba8cec8ecbe0e611a4386d1c2c158a0 to your computer and use it in GitHub Desktop.
- name: Install Docker
ansible.builtin.package:
name:
- docker-ce
- docker-ce-cli
- containerd.io
state: present
- name: Ensure Docker is started and enabled at boot
ansible.builtin.service:
name: docker
state: started
enabled: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment