added ssh banner for Soluzione Uno

This commit is contained in:
2025-02-09 17:26:59 +01:00
parent 19d725a920
commit 5eefbc3002
2 changed files with 32 additions and 0 deletions

9
banner-soluzioneuno.yml Normal file
View File

@@ -0,0 +1,9 @@
---
- hosts: all
become: true
tasks:
- import_tasks: tasks/general/banner-soluzioneuno.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,23 @@
---
- name: Ensure /etc/banner is populated with Soluzione Uno
ansible.builtin.copy:
dest: /etc/banner
content: |
┌──────────────────────────────────────────────────────┐
│ ___ _ _ _ _ │
│ / __| ___| |_ _ __(_)___ _ _ ___ | | | |_ _ ___ │
│ \__ \/ _ \ | || |_ / / _ \ ' \/ -_) | |_| | ' \/ _ \ │
│ |___/\___/_|\_,_/__|_\___/_||_\___| \___/|_||_\___/ │
│ │
│ This system is hosted and managed by Soluzione Uno. │
│ Any attempted or successful access is hereby │
│ prohibited, unless holding a written authorization. │
│ │
│ According to current regulations and to the fullest │
│ extent permitted by law, the above specified will be │
│ criminally prosecuted before a judge. │
│ Unless willing to risk jail and fines, you are to │
│ leave this system immediately without any further │
│ action on your part. You have been warned. │
│ │
└──────────────────────────────────────────────────────┘