Add multi-distribution bootstrap support
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user