9202017f8cfca096d95e9b4106fa47ab341121ae — Louis Solofrizzo 7 months ago 9d68e80
init: Add motd generation

Signed-off-by: Louis Solofrizzo <lsolofrizzo@online.net>
2 files changed, 17 insertions(+), 0 deletions(-)

A files/motd
M init.yml
A files/motd => files/motd +12 -0
@@ 0,0 1,12 @@
+     __                _ ______
+    / /   ____  __  __(_) ____/___  _  __
+   / /   / __ \/ / / / / /_  / __ \| |/_/
+  / /___/ /_/ / /_/ / / __/ / /_/ />  <
+ /_____/\____/\__,_/_/_/    \____/_/|_|
+ 
+ - Cisco - Cloud for friends -
+ 
+ Instance     : {{ api_host.content }}
+ OS           : {{ ansible_distribution }} {{ ansible_distribution_version }}
+ Architecture : {{ ansible_architecture }}
+ Kernel       : {{ ansible_kernel }}

M init.yml => init.yml +5 -0
@@ 39,3 39,8 @@ - name: Set instance hostname
      hostname:
        name: "{{ api_host.content }}"
+ 
+   - name: Set motd
+     template:
+       src: files/motd
+       dest: /etc/motd