Add option for not configuring MOTD
This commit is contained in:
parent
44d7644dfe
commit
39f6e624f1
2 changed files with 36 additions and 38 deletions
|
@ -32,6 +32,7 @@
|
||||||
file: core_motd.yml
|
file: core_motd.yml
|
||||||
apply:
|
apply:
|
||||||
tags: motd
|
tags: motd
|
||||||
|
when: base_core_motd_enabled == true
|
||||||
tags:
|
tags:
|
||||||
- motd
|
- motd
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
# 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 }}"
|
||||||
|
@ -42,4 +40,3 @@
|
||||||
line: PrintMotd no
|
line: PrintMotd no
|
||||||
notify:
|
notify:
|
||||||
- Restart SSH
|
- Restart SSH
|
||||||
when: base_core_motd_enabled == true
|
|
||||||
|
|
Loading…
Reference in a new issue