From cef7347a7cf7b0e58b79dd8ff3952259b3fd8949 Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Mon, 2 Oct 2023 14:32:46 +0200 Subject: [PATCH] added ssh banner for WiMORE --- sshbanner-wimore.yml | 9 +++++++++ tasks/general/sshbanner-wimore.yml | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 sshbanner-wimore.yml create mode 100644 tasks/general/sshbanner-wimore.yml diff --git a/sshbanner-wimore.yml b/sshbanner-wimore.yml new file mode 100644 index 0000000..c2230cc --- /dev/null +++ b/sshbanner-wimore.yml @@ -0,0 +1,9 @@ +--- +- hosts: all + become: true + tasks: + - import_tasks: tasks/general/sshbanner-wimore.yml + - import_tasks: tasks/debian-general/sshbanner.yml + when: ansible_facts["os_family"] == "Debian" + - import_tasks: tasks/rhel-general/sshbanner.yml + when: ansible_facts["os_family"] == "RedHat" diff --git a/tasks/general/sshbanner-wimore.yml b/tasks/general/sshbanner-wimore.yml new file mode 100644 index 0000000..46574d1 --- /dev/null +++ b/tasks/general/sshbanner-wimore.yml @@ -0,0 +1,19 @@ +--- +- name: Ensure /etc/banner is populated with WiMORE + ansible.builtin.copy: + dest: /etc/banner + content: | + ┌─────────────────────────────────────────────────────────┐ + │ __ ___ __ __ ___ ___ ___ │ + │ \ \ / (_) \/ |/ _ \| _ \ __| │ + │ \ \/\/ /| | |\/| | (_) | / _| │ + │ \_/\_/ |_|_| |_|\___/|_|_\___| │ + │ │ + │ Questo sistema e' gestito dal reparto IT Cloud WiMORE, │ + │ ogni accesso non autorizzato a questo sistema sara' │ + │ perseguito nei termini applicabili di legge. │ + │ │ + │ This system is managed by the WiMORE IT Cloud team, any │ + │ unauthorized access on this system will be persecuted │ + │ to the extent permitted by the applicable law. │ + └─────────────────────────────────────────────────────────┘