-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbanner.yaml
25 lines (22 loc) · 1.02 KB
/
banner.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
- hosts: all
user: charles.a
connection: ssh
become_user: root
become: yes
become_method: sudo
connection: paramiko
gather_facts: false
tasks:
- name: Adcionando banner
lineinfile:
dest="{{ banner }}"
state=present
line="{{ item }}"
banner: motd
ttext: "+------------------------------------------------------------------------------------------------------------------------------------------+
| ALERT! You are entering into a secured area! Your IP, Login Time, Username has been noted and has been sent to the server administrator! |
| This service is restricted to authorized users only. All activities on this system are logged. |
| Unauthorized access will be fully investigated and reported to the appropriate law enforcement agencies. |
+------------------------------------------------------------------------------------------------------------------------------------------+"
state: present