---
-
  name: "Including OS-specific vars"
  ansible.builtin.include_vars: "{{ ansible_os_family | lower }}.yml"

-
  name: "Gathering DEB architecture"
  ansible.builtin.command: dpkg --print-architecture
  register: deb_architecture
  changed_when: false

-
  name: "Printing DEB architecture"
  ansible.builtin.debug:
    msg: "deb_architecture.stdout: {{ deb_architecture.stdout }}"

-
  name: "Ensuring apt cache is updated"
  ansible.builtin.apt:
    cache_valid_time: 3600
    update_cache: true

-
  name: "Upgrading all apt packages"
  ansible.builtin.apt:
    upgrade: dist
    update_cache: true

-
  name: "Adding Cockpit "
  ansible.builtin.apt:
    name: "cockpit"
    state: present
