aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/docker/tasks/main.yml
blob: 574a17ce60f763d4f2ec73a324d096063b1b248f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
- name: Install Docker
  become: true
  ansible.builtin.apt:
    install_recommends: false
    name:
      - docker.io
      - docker-compose
    state: present

- name: Clean up Docker data
  become: true
  ansible.builtin.command: docker system prune -a -f --volumes
  changed_when: true