Skip to content

shhirose/ansible-motd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Role Name

Github Ansible galaxy Build Status MIT License

This is Ansible role for motd setting for RedHat Enterprise Linux, Debian, and Ubuntu.

Requirements

None

Role Variables

shhirose_motd_content: ''
shhirose_motd_shell_results: []
  # - ''
shhirose_motd_shell_after: ''

Variable parameters

shhirose_motd

key required default type values notes
content no string This is content for /etc/motd.
shell_results no array This is an array for shell command.
shell_after no string This is content after shell_results.

Dependencies

None

Example Playbook

- hosts: servers
  become: yes
  roles:
    - shhirose.motd
  vars:
    shhirose_motd_content: |-
      xx      xx  xxxxxx  xxxxxx  xxxx
      xxxx  xxxx  xx  xx    xx    xx  xx
      xx xxxx xx  xx  xx    xx    xx  xx
      xx  xx  xx  xxxxxx    xx    xxxx
    shhirose_motd_shell_results:
      - 'echo -n "kernel: "; uname -r'
    shhirose_motd_shell_after: 'author: shhirose'

License

MIT

About

This is Ansible role for motd setting for RedHat Enterprise Linux, Debian, and Ubuntu.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published