adfinis-sygroup.motd

motd

Configure /etc/issue and /etc/motd with Ansible.

Example Playbook

This example is taken from molecule/default/converge.yml.

---
- name: Converge
  hosts: all
  become: yes  # `no` will also work.

  roles:
    - role: adfinis.motd

Role Variables

The default values for the variables are set in defaults/main.yml:

---

# MOTD message (``/etc/motd``).
motd_message: |
  -------------------------------------------------
          This system is managed by Ansible
  -------------------------------------------------

# Issue message (``/etc/issue`` and ``/etc/issue.net``).
motd_issue_message: |
  -------------------------------------------------
          This system is managed by Ansible
  -------------------------------------------------

# If to install and use cowsay in the motd messages
motd_cowsay: false

Requirements

  • None

Compatibility

This role is only compatible with debian bullseye and bookworm.

The minimum version of Ansible required is 2.12.

License

GPL-3.0 <https://github.com/adfinis-sygroup/ansible-role-motd/blob/master/LICENSE>

Author Information

motd role was written by:

About

Set the MOTD

Install
ansible-galaxy install adfinis-sygroup.motd
GitHub repository
License
gpl-3.0
Downloads
4.3k
Owner
Adfinis SyGroup was rebranded to Adfinis, follow the link below: