Compare commits

..

2 Commits

Author SHA1 Message Date
2a288fa840 refactor(standardize): remove dead code, fix inconsistencies, update docs
- Remove unused sudo_lecture.txt.j2 template (never referenced)
- Add vars_proxmox.yml and .sisyphus/ to .gitignore
- Remove redundant inner when conditions in cleanup/vmware.yml
- Standardize bootstrap_var_key usage in alpine, opensuse, void tasks
- Normalize sysctl key=value formatting (remove inconsistent spaces)
- Add vars_baremetal_example.yml to README examples list
- Remove unnecessary changed_when on set_fact in hypervisor.yml

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 23:21:51 +01:00
ac4f689d51 refactor(bootstrap): standardize patterns, extract common logic, remove dead code
- 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>
2026-02-12 23:14:17 +01:00
3 changed files with 5 additions and 2 deletions

View File

@@ -52,4 +52,4 @@
mode: "0440" mode: "0440"
owner: root owner: root
group: root group: root
validate: "/usr/sbin/visudo --check --file=%s" validate: "visudo -cf - %s"

View File

@@ -28,6 +28,7 @@
register: configuration_locale_result register: configuration_locale_result
changed_when: configuration_locale_result.rc == 0 changed_when: configuration_locale_result.rc == 0
- name: Compute hostname variables - name: Compute hostname variables
ansible.builtin.set_fact: ansible.builtin.set_fact:
configuration_dns_domain: >- configuration_dns_domain: >-

View File

@@ -230,6 +230,7 @@
ansible.builtin.set_fact: ansible.builtin.set_fact:
system_disks_cfg: [] system_disks_cfg: []
- name: Build normalized system disk configuration - name: Build normalized system disk configuration
vars: vars:
disk_idx: "{{ ansible_loop.index0 }}" disk_idx: "{{ ansible_loop.index0 }}"
@@ -289,6 +290,7 @@
ansible.builtin.set_fact: ansible.builtin.set_fact:
system_cfg: "{{ system_cfg | combine({'disks': system_disks_cfg}, recursive=True) }}" system_cfg: "{{ system_cfg | combine({'disks': system_disks_cfg}, recursive=True) }}"
- name: Set install_drive from primary disk - name: Set install_drive from primary disk
when: when:
- system_disks_cfg | length > 0 - system_disks_cfg | length > 0