caseraw.machinemsg.machinemsg (1.0.7) — module

Set the machine motd and banner message

| "added in version" 2.9 of caseraw.machinemsg"

Authors: Kasra Amirsarvari (@KasraMforce)

preview | supported by community

Install collection

Install with ansible-galaxy collection install caseraw.machinemsg:==1.0.7


Add to requirements.yml

  collections:
    - name: caseraw.machinemsg
      version: 1.0.7

Description

Module that helps to set the machine motd and banner message

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# make a before login message
- name: Message before login
  machinemsg:
    text: "Ola, user. You are bout to ENTER"
    when: before
    fqdn: true
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# remove an after login message
- name: Message after login
  machinemsg:
    text: "Ola, user. You have ENTERED"
    when: after
    state: absent
    fqdn: False

Inputs

    
fqdn:
    description:
    - If True, a new line with the full FQDN of the machine will be displayd

text:
    description:
    - The free text message to display
    required: true
    type: str

when:
    description:
    - Whether to display before or after the login
    required: true

state:
    description:
    - Whether to be present or absent