Install and configure the MOTD (Message Of The Day) on Fedora/Centos/RHEL7/8, Debian/Ubuntu and Amazon target.
No special requirements; note that this role requires root access, so either run it in a playbook with a global become: yes
, or invoke the role in your playbook like:
- hosts: all
roles:
- role: lucab85.ansible_role_motd
become: yes
Available variables are listed along with default values in defaults/main.yml file.
None.
- hosts: all
become: yes
roles:
- lucab85.ansible_role_motd
Customize variables in vars/main.yml
motd_info: |
FQDN: {{ ansible_facts.fqdn }}
Distribution: {{ ansible_facts.distribution }} {{ ansible_facts.distribution_version }} {{ ansible_facts.distribution_release }}
CPUs: {{ ansible_facts.processor_vcpus }}
RAM: {{ (ansible_facts.memtotal_mb / 1000) | round(1) }}GB
MIT / BSD
This role was created in 2021 by Luca Berton, author of Ansible Pilot.
More information:
Thank you for supporting me: