Skip to content

Ansible Role to set up the MOTD (Message Of The Day) on Fedora/Centos/RHEL7/8, Debian/Ubuntu, and Amazon managed nodes.

Notifications You must be signed in to change notification settings

lucab85/ansible-role-motd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: MOTD (Message Of The Day)

CI

Install and configure the MOTD (Message Of The Day) on Fedora/Centos/RHEL7/8, Debian/Ubuntu and Amazon target.

Requirements

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

Role Variables

Available variables are listed along with default values in defaults/main.yml file.

Dependencies

None.

Example Playbook

- 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

License

MIT / BSD

Author Information

This role was created in 2021 by Luca Berton, author of Ansible Pilot.

Ansible Pilot

More information:

Donate

Thank you for supporting me: