Add option for not configuring MOTD
This commit is contained in:
parent
67032f2dc7
commit
44d7644dfe
2 changed files with 41 additions and 35 deletions
|
@ -32,6 +32,9 @@ base_core_timezone: "America/Boise"
|
||||||
# MOTD
|
# MOTD
|
||||||
# ====
|
# ====
|
||||||
|
|
||||||
|
# Banner to add to MOTD
|
||||||
|
base_core_motd_enabled: true
|
||||||
|
|
||||||
# Banner to add to MOTD
|
# Banner to add to MOTD
|
||||||
base_core_motd_banner: ""
|
base_core_motd_banner: ""
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
---
|
---
|
||||||
# file: roles/base/tasks/core_motd.yml
|
# file: roles/base/tasks/core_motd.yml
|
||||||
|
|
||||||
|
- name: "Configure standard MOTD"
|
||||||
|
block:
|
||||||
- name: Disable unnecessary MOTD files
|
- name: Disable unnecessary MOTD files
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
|
@ -40,3 +42,4 @@
|
||||||
line: PrintMotd no
|
line: PrintMotd no
|
||||||
notify:
|
notify:
|
||||||
- Restart SSH
|
- Restart SSH
|
||||||
|
when: base_core_motd_enabled == true
|
||||||
|
|
Loading…
Reference in a new issue