---
-
  name: "Ensuring apt cache is updated"
  ansible.builtin.apt:
    cache_valid_time: 3600
    update_cache: true
  when: "ansible_os_family == 'Debian'"

-
  name: "Upgrading all apt packages"
  ansible.builtin.apt:
    upgrade: dist
    update_cache: true
  when: "ansible_os_family == 'Debian'"

-
  name: "Adding Core Dependencies"
  ansible.builtin.apt:
    name:
      - htop
    state: present
  when: "ansible_os_family == 'Debian'"

-
  name: "Adding Additional Dependencies {{ packages }}"
  ansible.builtin.apt:
    name: "{{ packages }}"
    state: present
  when: "ansible_os_family == 'Debian'"
