From c32769d831477f707ab2202426a7571d89cf9bb8 Mon Sep 17 00:00:00 2001 From: Sandwich Date: Tue, 21 Jan 2025 20:16:05 +0100 Subject: [PATCH] Add banner --- roles/configuration/tasks/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/roles/configuration/tasks/main.yml b/roles/configuration/tasks/main.yml index cdcc1d2..59d5fe8 100644 --- a/roles/configuration/tasks/main.yml +++ b/roles/configuration/tasks/main.yml @@ -219,6 +219,22 @@ dest: /mnt/etc/profile.d/custom.sh mode: '0644' + - name: Create login banner + ansible.builtin.copy: + dest: "{{ item }}" + content: | + ************************************************************** + * WARNING: Unauthorized access to this system is prohibited. * + * All activities are monitored and logged. * + * Disconnect immediately if you are not an authorized user. * + ************************************************************** + owner: root + group: root + mode: '0644' + loop: + - /etc/issue + - /etc/issue.net + - name: Setup Network block: - name: Generate UUID for Network Profile