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:
