2019-10-06 22:41:31 +02:00
|
|
|
---
|
|
|
|
|
# Common/Usersetup: Auto-setup a user shell and prepare dotfiles.
|
|
|
|
|
# Will run once per user, because of lockfile `~/.ansbl-common-usersetup`
|
|
|
|
|
|
2023-04-28 23:25:25 +02:00
|
|
|
- name: Usersetup - Run setup tasks
|
2026-03-20 12:12:13 +01:00
|
|
|
ansible.builtin.include_tasks: "{{ with_first_found_item }}"
|
2019-10-06 22:41:31 +02:00
|
|
|
with_first_found:
|
2025-11-28 11:10:58 +01:00
|
|
|
- "usersetup-{{ ansible_facts['distribution'] }}.yml"
|
|
|
|
|
- "usersetup-{{ (override_os_family is defined) | ternary(override_os_family, ansible_facts['os_family']) }}.yml"
|
2026-03-20 12:12:13 +01:00
|
|
|
loop_control:
|
|
|
|
|
loop_var: with_first_found_item
|