added ssh banner for WiMORE

This commit is contained in:
Bryan Joshua Pedini 2023-10-02 14:32:46 +02:00
parent 4aa9fe1be1
commit cef7347a7c
2 changed files with 28 additions and 0 deletions

9
sshbanner-wimore.yml Normal file
View File

@ -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"

View File

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