Switch NAME to PRETTY_NAME

This commit is contained in:
LinuxSquare 2023-09-29 21:20:47 +02:00
parent 11c0a1dfe6
commit 45478a247f

View file

@ -43,7 +43,7 @@ system_base_motd:
- source: salt://{{ tpldir }}/files/base_motd.jinja
- template: jinja
- context:
OS_NAME: {{ salt['cmd.shell']('grep -E ^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') }}
- user: root
- group: root