lucab85.ansible_role_motd
Ansible Role: MOTD (Message Of The Day)
This role allows you to install and set up the MOTD (Message Of The Day) on Fedora/Centos/RHEL7/8, Debian/Ubuntu, and Amazon targets.
Requirements
No special requirements. This role needs root access, so run it with a playbook that has become: yes
, or use it like this in your playbook:
- hosts: all
roles:
- role: lucab85.ansible_role_motd
become: yes
Role Variables
You can find the available variables and their default values in the defaults/main.yml file.
Dependencies
There are no dependencies.
Example Playbook
Here’s a simple playbook example:
- hosts: all
become: yes
roles:
- lucab85.ansible_role_motd
You can customize the variables in vars/main.yml
like this:
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
License
MIT / BSD
Author Information
This role was created in 2021 by Luca Berton, the author of Ansible Pilot.
Ansible Pilot
For more information, check out:
Donate
Thank you for your support:
Informazioni sul progetto
Setup the MOTD (Message Of The Day) on Fedora/Centos/RHEL7/8, Debian/Ubuntu and Amazon target.
Installa
ansible-galaxy install lucab85.ansible_role_motd
Licenza
Unknown
Download
247
Proprietario
Ansible Automation Engineer with Open Source passion: (Ansible, Progressive Web Applications, Cloud Computing, IoT, GNU/Linux)