From efb254f2c554d33a94637a262a6dcc48ce2be0ca Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Wed, 1 Aug 2018 15:16:22 +0200 Subject: [PATCH] 5th exercise: jinja templating --- 50.Template/50.Template.md | 25 +++++++++++++++++++++++++ 50.Template/solution/solution.yml | 10 ++++++++++ 50.Template/solution/template/motd.j2 | 5 +++++ 3 files changed, 40 insertions(+) create mode 100644 50.Template/50.Template.md create mode 100644 50.Template/solution/solution.yml create mode 100644 50.Template/solution/template/motd.j2 diff --git a/50.Template/50.Template.md b/50.Template/50.Template.md new file mode 100644 index 0000000..328f6bf --- /dev/null +++ b/50.Template/50.Template.md @@ -0,0 +1,25 @@ +# 50 - Template + +This playbook makes you use Jinja templating to deploy custom motd. + +## Template and Playbook Creation + +First write a Jinja template file following the given specs: +* Contains the following content: +``` +/----------------------------- +Welcome to the ansible managed host: + +Please use Ansible playbooks instead of doing manual modifications on the system. +-----------------------------/ +``` +* Ensure that you use the correct Jinja mechanism to allow replacement of `