25 lines
656 B
YAML
25 lines
656 B
YAML
---
|
|
- name: Configure CachyOS workstation
|
|
hosts: localhost
|
|
connection: local
|
|
become: yes
|
|
|
|
tasks:
|
|
- name: Verify operating system
|
|
ansible.builtin.assert:
|
|
that:
|
|
- ansible_facts['distribution'] == "Archlinux"
|
|
fail_msg: "This playbook is intended for CachyOS only."
|
|
success_msg: "CachyOS 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
|