added ssh banner for Soluzione Uno
This commit is contained in:
9
banner-soluzioneuno.yml
Normal file
9
banner-soluzioneuno.yml
Normal 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"
|
||||
23
tasks/general/banner-soluzioneuno.yml
Normal file
23
tasks/general/banner-soluzioneuno.yml
Normal 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. │
|
||||
│ │
|
||||
└──────────────────────────────────────────────────────┘
|
||||
Reference in New Issue
Block a user