---
- name: Install packages from manifest
  apt:
    name: "{{ os_packages[ansible_facts.pkg_mgr] }}"
    state: latest  # noqa 403
    update_cache: true
  become: true

- name: Upgrade all packages to the latest version
  apt:
    upgrade: dist
  become: true

- name: Remove useless packages from the cache
  apt:
    autoclean: true
  become: true

- name: Remove dependencies that are no longer required
  apt:
    autoremove: true
  become: true

---
- name: Install Debian packages
  apt:
    name: "{{ os_packages[ansible_facts.pkg_mgr] }}"
    state: latest  # noqa 403
    update_cache: true
  become: true

- name: Upgrade all packages to the latest version
  apt:
    upgrade: dist
  become: true

- name: Remove useless packages from the cache
  apt:
    autoclean: true
  become: true

- name: Remove dependencies that are no longer required
  apt:
    autoremove: true
  become: true

Edit task name for parity
Edit task name for parity
