---
- name: Include variables based on the operating system
  include_vars: "{{ ansible_os_family }}.yml"
  when: ansible_system == 'Linux'

# @action Ensures Cockpit is installed
# Installs Cockpit on Archlinux, CentOS, Debian, Fedora and Ubuntu
# @action Ensures Cockpit is installed
# Installs cockpit-machines
# @action Ensures Cockpit is installed
# Installs cockpit-podman
# @action Ensures Cockpit is installed
# Installs Cockpit 389DS on Debian and RedHat based Systems
# @action Ensures Cockpit is configured
# Installs cockpit-machine profiles
- name: Include tasks based on the operating system
  become: true
  block:
    - include_tasks: "install-{{ ansible_os_family }}.yml"
  when: ansible_system == 'Linux'
