Add MotD and fix some typos

This commit is contained in:
Wojciech Kozlowski 2018-12-16 10:29:00 +00:00
parent 3fa120a058
commit 3837a7dc20
4 changed files with 28 additions and 4 deletions

View File

@ -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
View File

@ -0,0 +1,14 @@
--------------------------------------------------------------------------------
$$ $$ $$
$$ $$ ""
$$ $$
$$ ,adPPYba, $$ ,d$ $$
$$ a$" "$a $$ ,a$" $$
$$ $b d$ $$$$[ $$
$$ "$a, ,a$" $$`"Yba, $$
$$ `"YbbdP"' $$ `Y$a $$
--------------------------------------------------------------------------------

View File

@ -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.
# -------------------------------------------------------------------------

View File

@ -1,6 +1,6 @@
---
hostname: # Output of hostname
fqdn: # OUtput of hostname --fqdn
fqdn: # Output of hostname --fqdn
# Ansible parameters
ansible_port: