Compare commits

...

2 Commits

Author SHA1 Message Date
gilex-dev c103aa984f
Add custom motd 2024-06-14 10:13:51 +02:00
gilex-dev 6aeea6f57e
Detail external request made from User_guide.html 2024-06-14 00:31:45 +02:00
3 changed files with 20 additions and 1 deletions

View File

@ -42,7 +42,7 @@ Then compile the guide:
```bash
# for pdf
asciidoctor-pdf -a optimize ./docs/User_guide.adoc
# for html WARNING: external resources are loaded when opening (google fonts etc.)
# for html WARNING: external resources are loaded when opening (fonts.googleapis.com, fonts.gstatic.com, cdnjs.cloudflare etc.)
asciidoctor ./docs/User_guide.adoc
```

View File

@ -35,6 +35,16 @@
daemon_reload: true
tasks:
- name: Ensure custom motd is latest
tags: debug
become: true
ansible.builtin.template:
src: ./templates/motd.sh.j2
dest: /etc/profile.d/motd.sh
owner: root
group: root
mode: u=rw,g=r,o=r
- name: Ensure valid apt cache and required tools are present
become: true
ansible.builtin.apt:

View File

@ -0,0 +1,9 @@
RED='\033[0;31m'
YELLOW='\033[0;33m'
NC='\033[0m' # No Color
if [ "${USER}" == "{{ ansible_user }}" ]; then
echo -e "\nYou are logged in as user ${RED}${USER}${NC} used by ansible to manage this linux installation.
${YELLOW}Make sure to reflect all manual changes in the playbook found at
https://somepi.ddns.net/gites/gilex-dev/GisServer${NC}";
fi