---
# @action Ensures NextCloud client is installed
# Installs NextCloud client on Archlinux, CentOS, Debian, Fedora, macOS, Ubuntu, and Windows
# @action Ensures NextCloud client is installed
# Configures NextCloud client settings
- 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"
