Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshbeard/ansible-role-motd
Ansible role for motd and issue files
https://github.com/joshbeard/ansible-role-motd
ansible ansible-role motd
Last synced: 2 days ago
JSON representation
Ansible role for motd and issue files
- Host: GitHub
- URL: https://github.com/joshbeard/ansible-role-motd
- Owner: joshbeard
- License: 0bsd
- Created: 2022-03-30T14:21:11.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:21:59.000Z (about 1 year ago)
- Last Synced: 2025-01-19T20:08:19.077Z (8 days ago)
- Topics: ansible, ansible-role, motd
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: motd
Ansible role to manage `/etc/motd` and `/etc/issue(.net)`.
The files a provided by the templates under [`templates/`](templates).
## Installation
Example `requirements.yml` file for `ansible-galaxy`:
```yaml
roles:
- src: https://github.com/joshbeard/ansible-role-motd.git
scm: git
version: '0.1.0'
name: jbeard.motd
```Install with `ansible-galaxy -r requirements.yml`
## Usage
### Variables
| Variable | Description
| -------------------- | ------------
| `manage_motd` | Boolean toggling managing the motd file.
| `manage_issue_files` | Boolean toggling managing the issue and issue.net files.
| `motd_src` | Path to template for the `/etc/motd` file.
| `issue_src` | Path to template for the `/etc/issue` file.
| `issue_net_src` | Path to template for the `/etc/issue.net` file.### Example Configuration
```yaml
# Use a custom template, relative to the playbook dir
motd_src: "{{ playbook_dir }}/templates/motd-custom"
```