---
# @action Ensures default browser is configured
# Set the default browser on Debian based Systems
- name: Set the default browser
  alternatives:
    link: /usr/bin/x-www-browser
    name: x-www-browser
    path: "{{ browser_dict[default_browser_chosen].executable | default('') }}"
    priority: 200

- name: Ensure xdg-utils is installed
  apt:
    name: xdg-utils
    state: present
    update_cache: "{{ omit if skip_package_cache_update is defined else 'true' }}"

- name: Run generic Linux tasks
  include_tasks: config-Linux.yml
  loop: "{{ user_configs }}"
  loop_control:
    label: "{{ user.username }}"
    loop_var: user
  when: (user.system is not defined) or ((user.system is defined) and (not user.system))
