aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/roles/docker/tasks/main.yml
blob: c8361a013c7a717103a5e170a655484a791e5f4f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                             







                                



                                                                  
- 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
  community.docker.docker_prune:
    containers: true
    images: true
    images_filters:
      dangling: false
    networks: true
    volumes: true
    builder_cache: true

- name: Configure Docker logging driver
  when: docker_logging_driver is defined and docker_logging_driver
  ansible.builtin.include_tasks: logging.yml