---
  - name: Upgrade all packages to the latest version
    apt: 
      name: "*" 
      state: latest
    become: yes

  - name: Install required system packages
    apt:
        update_cache: yes
        name: 
            - apt-transport-https
            - ca-certificates
            - curl
            - software-properties-common
            - python3-pip
            - virtualenv
            - python3-setuptools
        state: latest
    become: yes
    tags: 
      - always

  - include_tasks: setup-ubuntu.yml
    when: ansible_os_family == 'Debian'

  - include_tasks: install-docker.yml
