---
- name: Include variables based on the operating system
  include_vars: "{{ ansible_os_family }}.yml"

# @action Ensures VIM is installed
# Installs VIM on Archlinux, CentOS, Debian, Fedora, macOS, Ubuntu, and Windows
# @action Ensures VIM is configured
# Installs vim-plug on Archlinux, CentOS, Debian, Fedora, macOS, Ubuntu, and Windows
# @action Ensures VIM is configured
# Installs provided VIM Plugins
# @action Ensures VIM is configured
# Configures VIM Plugins using the provided settings
# @action Ensures VIM is configured
# Configures VIM to use Themer theme
- name: Include tasks based on the operating system
  become: true
  become_method: "{{ 'runas' if ansible_os_family == 'Windows' else 'sudo' }}"
  become_user: "{{ ansible_user if ansible_os_family == 'Windows' else omit }}"
  block:
    - include_tasks: "install-{{ ansible_os_family }}.yml"
