adriagalin.motd

GitHub Readme

adriagalin.motd

Build Status Ansible Galaxy

This is an Ansible role for setting up the Message Of The Day (motd) file. By default, this role adds extra information about the operating system and hardware.

Requirements

Tested on:

  • Ubuntu 20.04 LTS

It should work with:

  • All versions of Ubuntu
  • All versions of Debian
  • All versions of RHEL
  • All versions of CentOS

Role Variables

ag_motd_remove_default_config: false
ag_motd_restore_default_config: false
ag_motd_add_footer: false
ag_motd_sysadmins_signature: specify the sysadmin team signature
ag_motd_sysadmins_email: specify the sysadmin support email
ag_motd_content: specify the content for the motd
ag_motd_info: additional info to show in the message
ag_motd_add_update: false
ag_motd_update_content: additional dynamic content before the motd

Dependencies

None.

Example Playbook

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

This playbook creates the /etc/motd file that looks like this:

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

This is host1 running Debian.

NOTE: The configuration for this system and its applications is managed by
automated systems. To make sure any changes you make here aren’t lost,
please contact 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, I was inspired by some roles from Ansible Galaxy/Github:

Thank you.

Informazioni sul progetto

Set up message of the day (motd)

Installa
ansible-galaxy install adriagalin.motd
Licenza
gpl-3.0
Download
116.5k