Files
ansible-playbooks/roles/bootstrap/tasks/set-motd.yml
T
2026-05-08 21:27:10 +02:00

16 lines
397 B
YAML

- name: Set MOTD to display fastfetch on login
copy:
content: |
#!/bin/bash
# Managed by Ansible - Do not edit manually
fastfetch -s os:kernel:uptime:packages:shell:disk:cpu:memory:localip:colors
dest: /etc/profile.d/motd.sh
owner: root
group: root
mode: '0755'
- name: Remove default MOTD file if it exists
file:
path: /etc/motd
state: absent