- 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