Compare commits
2 Commits
e075cd6a1a
...
c103aa984f
Author | SHA1 | Date |
---|---|---|
gilex-dev | c103aa984f | |
gilex-dev | 6aeea6f57e |
|
@ -42,7 +42,7 @@ Then compile the guide:
|
||||||
```bash
|
```bash
|
||||||
# for pdf
|
# for pdf
|
||||||
asciidoctor-pdf -a optimize ./docs/User_guide.adoc
|
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
|
asciidoctor ./docs/User_guide.adoc
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,16 @@
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
|
|
||||||
tasks:
|
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
|
- name: Ensure valid apt cache and required tools are present
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue