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

# @action Ensures Peek is installed
# Installs Peek on Archlinux, CentOS, Debian, Fedora, and Ubuntu
# @action Ensures Peek is installed
# Installs optional dependencies on Archlinux if GNOME is installed
# @action Ensures Peek is installed
# Adds the RPM Fusion free repository on RedHat systems to install ffmpeg (a dependency of Peek)
- name: Include tasks based on the operating system
  become: true
  block:
    - include_tasks: "install-{{ ansible_os_family }}.yml"
  when: ansible_system == 'Linux'
