---
# @action: Revisit at a later point once support for Python 3.10 is added to Poetry and remove
# this step, and the step in `install-Linux.yml` where the poetry script is updated to use 3.9
# version of Python
- name: Ensure Python 3.9 is installed
  community.general.pacman:
    name: python3.9
    state: present
    update_cache: "{{ omit if skip_package_cache_update is defined else 'true' }}"

- name: Run generic installation tasks
  include_tasks: install-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))
