- Make timezone, locale, and keymap configurable via system_cfg - Consolidate rhel8/9/10.repo.j2 into single rhel.repo.j2 template - Extract bootstrap_common_conditional for shared firewall/LUKS/guest packages - Remove redundant version aliases (fedora40-43, debian10-13, rhel8-10, etc.) - Simplify bootstrap dispatch from 10 conditional blocks to single mapping - Merge bootstrap_ubuntu_lts into bootstrap_ubuntu (identical) - Remove orphaned firstrun.sh.j2 template - Remove configuration/defaults/main.yml aliases, inline into banner.yml - Remove unnecessary changed_when: false on set_fact/debug tasks - Deduplicate hostname variable computation in locales.yml - Update README with timezone/locale/keymap variable reference Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
526 B
YAML
18 lines
526 B
YAML
---
|
|
- name: Run OS-specific bootstrap process
|
|
vars:
|
|
bootstrap_os_task_map:
|
|
almalinux: almalinux.yml
|
|
alpine: alpine.yml
|
|
archlinux: archlinux.yml
|
|
debian: debian.yml
|
|
fedora: fedora.yml
|
|
opensuse: opensuse.yml
|
|
rocky: rocky.yml
|
|
rhel: rhel.yml
|
|
ubuntu: ubuntu.yml
|
|
ubuntu-lts: ubuntu.yml
|
|
void: void.yml
|
|
bootstrap_var_key: "{{ 'bootstrap_' + (os | replace('-lts', '') | replace('-', '_')) }}"
|
|
ansible.builtin.include_tasks: "{{ bootstrap_os_task_map[os] }}"
|