motd

adriagalin.motd

Build Status Ansible Galaxy

An ansible role for configuring Message Of The Day (motd) file. By default this role add additional information about the distro and the hardware.

Requirements

Tested on:

  • Ubuntu 20.04 LTS
    

Should work with:

  • All Ubuntu
    
    • All Debian
      
      • All RHEL
        
        • All Centos
          

Role Variables

ag_motd_remove_default_config: false
ag_motd_restore_default_config: false
ag_motd_add_footer: false
ag_motd_sysadmins_signature: set sysadmin team signature
ag_motd_sysadmins_email: set sysadmin support email
ag_motd_content: set content of motd
ag_motd_info: additional information to show in message
ag_motd_add_update: false
ag_motd_update_content: additional dynamic content before motd

Dependencies

None.

Example Playbook

    - hosts: servers
      roles:
         - { role: adriagalin.motd }

This playbook produces the /etc/motd file looking like this:

--------------------------------------------------------------------------
                    This system is managed by Ansible
--------------------------------------------------------------------------

This is host1 running Debian.

NOTE: System and application configuration for this host is managed by
automated systems. To ensure that any changes you make here are not lost,
please contact with your system administrators.

 FQDN:    host1
 Distro:  Debian 7.8 wheezy
 Virtual: NO
 CPUs:    8
 RAM:     16.0GB

Yours,
Random system administrators
email: [email protected]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Last ansible run: 2015-08-12T23:09:07Z

License

GPLv3 License.

Author Information

Adrià Galín

Inspiration

During development, some roles in Ansible Galaxy/Github also inspired me:

  • [michaelrigart](https://github.com/michaelrigart/ansible-role-motd)
    
    • [picotrading](https://github.com/picotrading/ansible-motd)
      
      • [geerlingguy](https://github.com/geerlingguy/ansible-role-mysql)
        
        • [nickjj](https://github.com/nickjj/ansible-locale)
          
          • and many others.
            

thank you.

About

Set up message of the day (motd)

Install
ansible-galaxy install adriagalin/ansible.motd
GitHub repository
License
gpl-3.0
Downloads
102170