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. │ + └─────────────────────────────────────────────────────────┘