Files

25 lines
689 B
YAML

---
- 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