Add MotD and fix some typos
This commit is contained in:
parent
3fa120a058
commit
3837a7dc20
@ -13,7 +13,7 @@ Usage
|
||||
|
||||
Before any provisioning
|
||||
|
||||
1. Copy ``secrets.def.yml`` to ``secrets.yml`` and fill out all the variables.
|
||||
1. Copy ``secrets.def.yml`` to ``secrets.yml`` and fill out all the variables
|
||||
2. Encrypt the file with
|
||||
|
||||
::
|
||||
@ -37,13 +37,13 @@ To provision the server
|
||||
|
||||
ansible-playbook --vault-id @prompt python.yml
|
||||
|
||||
2. Configure the SSH daemon with a new port number and better security options.
|
||||
2. Configure the SSH daemon with a new port number and better security options
|
||||
|
||||
::
|
||||
|
||||
ansible-playbook --vault-id @prompt ssh.yml
|
||||
|
||||
3. Run the remaining setup.
|
||||
3. Run the remaining setup
|
||||
|
||||
::
|
||||
|
||||
|
14
ansible/etc/motd.j2
Normal file
14
ansible/etc/motd.j2
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
$$ $$ $$
|
||||
$$ $$ ""
|
||||
$$ $$
|
||||
$$ ,adPPYba, $$ ,d$ $$
|
||||
$$ a$" "$a $$ ,a$" $$
|
||||
$$ $b d$ $$$$[ $$
|
||||
$$ "$a, ,a$" $$`"Yba, $$
|
||||
$$ `"YbbdP"' $$ `Y$a $$
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
@ -342,6 +342,16 @@
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Set MotD.
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
- name: Set MotD
|
||||
template:
|
||||
src: ./etc/motd.j2
|
||||
dest: /etc/motd
|
||||
mode: 0644
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Update rkhunter and chkrootkit databases.
|
||||
# -------------------------------------------------------------------------
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
hostname: # Output of hostname
|
||||
fqdn: # OUtput of hostname --fqdn
|
||||
fqdn: # Output of hostname --fqdn
|
||||
|
||||
# Ansible parameters
|
||||
ansible_port:
|
||||
|
Reference in New Issue
Block a user