Configure /etc/issue
and /etc/motd
with Ansible.
This example is taken from molecule/default/converge.yml
.
---
- name: Converge
hosts: all
become: yes # `no` will also work.
roles:
- role: adfinis.motd
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
- None
This role is only compatible with debian bullseye and bookworm.
The minimum version of Ansible required is 2.12.
GPL-3.0 <https://github.com/adfinis-sygroup/ansible-role-motd/blob/master/LICENSE>
motd role was written by: