Add BUG_REPORT_URL to motd

This commit is contained in:
LinuxSquare 2023-09-29 22:35:56 +02:00
parent 51ac687063
commit 35da420376
2 changed files with 5 additions and 0 deletions

View file

@ -45,6 +45,7 @@ system_base_motd:
- context: - context:
OS_NAME: {{ salt['cmd.shell']('grep -E ^PRETTY_NAME /etc/os-release | cut -d= -f2') }} OS_NAME: {{ salt['cmd.shell']('grep -E ^PRETTY_NAME /etc/os-release | cut -d= -f2') }}
OS_VERSION: {{ salt['cmd.shell']('grep -E ^VERSION_ID /etc/os-release | cut -d= -f2') }} OS_VERSION: {{ salt['cmd.shell']('grep -E ^VERSION_ID /etc/os-release | cut -d= -f2') }}
OS_ISSUE_URL: {{ salt['cmd.shell']('grep -E ^BUG_REPORT_URL /etc/os-release | cut -d= -f2') }}
- user: root - user: root
- group: root - group: root
- mode: '0644' - mode: '0644'

View file

@ -11,3 +11,7 @@
OS: {{ OS_NAME }} OS: {{ OS_NAME }}
Version: {{ OS_VERSION }} Version: {{ OS_VERSION }}
Report issues on: {{ OS_ISSUE_URL }}
═════════════════════════════════════════════════