Add multi-distribution bootstrap support

This commit is contained in:
2026-11-02 16:23:41 -07:00
parent fcb34a00d3
commit d7c13b142e
2 changed files with 40 additions and 16 deletions
+24
View File
@@ -0,0 +1,24 @@
---
- name: Configure Arch-based workstation
hosts: localhost
connection: local
become: yes
tasks:
- name: Verify operating system
ansible.builtin.assert:
that:
- ansible_facts['os_family'] == "Archlinux"
fail_msg: "This playbook is intended for Arch-based distributions only."
success_msg: "Arch-based distribution detected successfully."
- name: Ensure Fastfetch is installed
ansible.builtin.package:
name: fastfetch
state: present
- name: Ensure Fastfetch starts in interactive Bash
ansible.builtin.lineinfile:
path: /home/robert/.bashrc
line: fastfetch
insertafter: EOF