ansible-role-common/tasks/usersetup.yml

10 lines
405 B
YAML

---
# Common/Usersetup: Auto-setup a user shell and prepare dotfiles.
# Will run once per user, because of lockfile `~/.ansbl-common-usersetup`
- name: Usersetup - Run setup tasks
ansible.builtin.include_tasks: "{{ item }}"
with_first_found:
- "usersetup-{{ ansible_distribution }}.yml"
- "usersetup-{{ (override_os_family is defined) | ternary(override_os_family, ansible_os_family) }}.yml"